You have dashes in “apt-upgrade” and when I run the commands, I get the response -bash: apt-update: command not found
. Shouldn’t it be “apt update”?
For `apt update’, I get:
mainsail@freestylebook:~/klipper $ apt update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
But, when I do ‘sudo apt update’:
mainsail@freestylebook:~/klipper $ sudo apt update
Hit:1 http://ftp.debian.org/debian bullseye-backports InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
27 packages can be upgraded. Run 'apt list --upgradable' to see them.
For apt-cache policy' and
sudo apt-cache policy`, I get:
mainsail@freestylebook:~/klipper $ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://archive.raspberrypi.org/debian bullseye/main armhf Packages
release o=Raspberry Pi Foundation,a=stable,n=bullseye,l=Raspberry Pi Foundation,c=main,b=armhf
origin archive.raspberrypi.org
100 http://ftp.debian.org/debian bullseye-backports/contrib armhf Packages
release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=contrib,b=armhf
origin ftp.debian.org
100 http://ftp.debian.org/debian bullseye-backports/non-free armhf Packages
release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=non-free,b=armhf
origin ftp.debian.org
100 http://ftp.debian.org/debian bullseye-backports/main armhf Packages
release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=main,b=armhf
origin ftp.debian.org
500 http://raspbian.raspberrypi.org/raspbian bullseye/rpi armhf Packages
release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=rpi,b=armhf
origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian bullseye/non-free armhf Packages
release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=non-free,b=armhf
origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian bullseye/contrib armhf Packages
release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=contrib,b=armhf
origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
release o=Raspbian,a=stable,n=bullseye,l=Raspbian,c=main,b=armhf
origin raspbian.raspberrypi.org
Pinned packages:
When I replace the last line in sources.list
with deb http://ftp.us.debian.org/debian bullseye-backports main non-free contrib
I get the message:
Your '/etc/apt/sources.list' file changed, please run 'apt-get update'.
I try running apt-get update
and get the permission denied same as noted above but with sudo apt-get update
I get:
mainsail@freestylebook:~/klipper $ sudo apt-get update
Get:1 http://ftp.us.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:4 http://ftp.us.debian.org/debian bullseye-backports/main armhf Packages [415 kB]
Get:5 http://ftp.us.debian.org/debian bullseye-backports/main Translation-en [353 kB]
Get:6 http://ftp.us.debian.org/debian bullseye-backports/non-free armhf Packages [9,072 B]
Get:7 http://ftp.us.debian.org/debian bullseye-backports/non-free Translation-en [27.7 kB]
Get:8 http://ftp.us.debian.org/debian bullseye-backports/contrib armhf Packages [4,680 B]
Get:9 http://ftp.us.debian.org/debian bullseye-backports/contrib Translation-en [5,984 B]
Fetched 864 kB in 2s (553 kB/s)
Reading package lists... Done
Next, I checked the /dev/serial/by-id/
folder and got:
mainsail@freestylebook:~/klipper $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory
Now, after a sudo reboot
and checking /dev/serial/by-id/
, I get:
Linux freestylebook 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Aug 29 23:11:13 2023 from fe80::b5e9:62d4:8634:abf%wlan0
mainsail@freestylebook:~ $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory
mainsail@freestylebook:~ $
Now, with changing the last line of sources.list
to deb http://deb.debian.org/debian bullseye-backports main non-free contrib
. After running ‘sudo apt-get update’ again, I get what looks to be the same as above and No such file or directory
for /dev/serial/by-id/
:
mainsail@freestylebook:~ $ sudo apt edit-sources
Your '/etc/apt/sources.list' file changed, please run 'apt-get update'.
mainsail@freestylebook:~ $ sudo apt-get update
Get:1 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:4 http://deb.debian.org/debian bullseye-backports/main armhf Packages [415 kB]
Get:5 http://deb.debian.org/debian bullseye-backports/main Translation-en [353 kB]
Get:6 http://deb.debian.org/debian bullseye-backports/non-free armhf Packages [9,072 B]
Get:7 http://deb.debian.org/debian bullseye-backports/non-free Translation-en [27.7 kB]
Get:8 http://deb.debian.org/debian bullseye-backports/contrib armhf Packages [4,680 B]
Get:9 http://deb.debian.org/debian bullseye-backports/contrib Translation-en [5,984 B]
Fetched 864 kB in 1s (715 kB/s)
Reading package lists... Done
mainsail@freestylebook:~ $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory
Again, reboot and check again:
Linux freestylebook 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Aug 30 01:43:08 2023 from fe80::b5e9:62d4:8634:abf%wlan0
mainsail@freestylebook:~ $ ls /dev/serial/by-id/
ls: cannot access '/dev/serial/by-id/': No such file or directory
Hopefully I’m doing what you want me to do - if not, let me know.
The only things I can think of why this change isn’t making any difference is that it’s a 32bit or 64bit OS issue or a CM4 versus classic rPi issue, but I would expect some kind of error pointing to an incompatibility.
Things to try?