PINE64
scp.bin not found, can't complete apt upgrade - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: scp.bin not found, can't complete apt upgrade (/showthread.php?tid=15110)



scp.bin not found, can't complete apt upgrade - Hiraghm - 10-16-2021

I'm running Bookworm on my community edition Pinephone.

For the past couple weeks, every time I've tried a "sudo apt upgrade", it errors out with the error that it can't find /etc/lib/scp.bin.
I've tried running the Software app, it can't download the updates, complains of missing dependencies (but doesn't say what they are),

and now when I try to run apt update, it 404 errors on trixie-security and trixie-updates, then says there's no release file for trixie-security and trixie-updates, therefore they can't be updated securely and are disabled.

I tried sudo apt-get clean followed by sudo apt-get check followed by sudo apt-get -f install

after that it listed some packages that could be removed and then said 0 updated, 0 newly installed, 18 to remove, 380 to upgrade.

so I tried autoremove and got the original error:
md5sum: /usr/lib/crust/scp.bin: no such file or directory
And then I get two errors when the script tries to run scp.bin

Does anyone have any clue what is happening and what I need to do to fix it? Do I have to do a complete re-install? Sad


RE: scp.bin not found, can't complete apt upgrade - Hiraghm - 10-16-2021

So I've been dinking around ignorantly and discovered something...
whatever script apt upgrade calls runs a script which does
md5sum /usr/lib/crust/scp.bin
which errors our.
/usr/lib/crust on my machine is a symbolic link to the *file* /usr/lib/crust-firmware/pinephone
I'm guessing it should be a symbolic link to /usr/lib/crust-firmware and/or /usr/lib/crust/scp.bin should be a symbolic link to /usr/lib/crust-firmware/pinephone.

I'm not experienced or knowledgeable enough to fix this, however Sad

I seem to have fixed it.
I cded to /usr/lib/crust-firmware
then "cp pinephone scp.bin"
then I unlinked the symlink from /usr/lib/crust
"unlink /usr/lib/crust"
then I linked the directory to the directory
"ln -s /usr/lib/crust-firmware /usr/lib/crust"

Then I did a sudo apt upgrade and the upgrade appears to be proceeding