Crust weirdness
#1
I tried to installl caffeine today by running `sudo apt install caffeine`. I got this error message:

```
md5sum: /usr/lib/crust/scp.bin: No such file or directory
E: Sub-process if grep -qE '(u-boot-sunxi|arm-trusted-firmware)'; then touch /tmp/upgrade-uboot; else md5sum /usr/lib/crust/scp.bin > /tmp/crust.md5; fi returned an error code (1)
E: Failure running script if grep -qE '(u-boot-sunxi|arm-trusted-firmware)'; then touch /tmp/upgrade-uboot; else md5sum /usr/lib/crust/scp.bin > /tmp/crust.md5; fi

```

After this, I couldn't installl anything without getting the same message. So I ran the following:

```
sudo mkdir /usr/lib/crust/

sudo cp /usr/bin/scp /usr/lib/crust/scp.bin
```

Now everything works, but this is a hack and I'm not sure what went wrong here, or how to fix it properly. Thoughts?
  Reply
#2
(12-27-2020, 06:26 PM)3x5co Wrote: Now everything works, but this is a hack and I'm not sure what went wrong here, or how to fix it properly. Thoughts?

Better is to report to whatever distro you're using. It seems like a problem in caffeine package, but there are many possible causes.
In any case, scp.bin stands for "System Control Processor", and you've copied scp wich is verly likely the the "secure copy" binary. I don't believe it to be a problem unless you install kernel/uboot via package manager, but is much better to get the righ file. If that is a debian based distro you can also "solve" the problem by editing a proper file under /var/lib/dpkg/info (or something similar) although that fix will dissapear if you reinstall caffeine
  Reply
#3
Maybe a slightly better hack -- manually fetch the crust-firmware package (http://repo.mobian-project.org/pool/main...-firmware/), install it with sudo dpkg -i, then sudo ln -s /usr/lib/crust-firmware/pinephone /usr/lib/crust

This "fixed" the issue for me. I encountered it after a dist-upgrade, nothing to do with the caffeine package.

-john
  Reply
#4
Better solution: remove the file /etc/apt/apt.conf.d/99-pinephone-uboot
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CRUST power management on Mobian 0x070 6 3,928 07-16-2020, 04:30 AM
Last Post: a-wai

Forum Jump:


Users browsing this thread: 1 Guest(s)