Hallo zusammen,
ich habe ein seltsames Problem, bei dem ich bisher noch keine Lösung finden konnte ![]()
Jegliche Versuche, sudo apt[-get] update oder sudo apt[-get] upgrade auszuführen, enden mit einem Segmentation fault. Davon abgesehen kann ich kein Fehlverhalten feststellen, der Pi läuft schon seit geraumer Zeit (und apt habe ich eine Weile lang nicht mehr angefasst).
Code
$ sudo apt update
Get:1 http://deb.debian.org/debian unstable InRelease [146 kB]
Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [330 kB]
Get:5 http://deb.debian.org/debian unstable/main armhf Packages [8,002 kB]
Get:6 http://deb.debian.org/debian unstable/main Translation-en [6,228 kB]
Fetched 14.8 MB in 30s (486 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
13 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek libruby2.5 raspi-config rpi-eeprom rpi-eeprom-images ruby2.5 ruby2.5-dev ruby2.5-doc wireguard-dkms
13 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/22.1 MB of archives.
After this operation, 2,630 kB of additional disk space will be used.
apt-listchanges: Reading changelogs...
Segmentation fault
$
Display More
Ein paar Fakten zum System:
- Raspberry Pi 3 Model B Rev 1.2 mit Raspbian Buster
- Netzteil: https://www.raspberrypi.org/products/raspb…l-power-supply/
Code
$ uname -a
Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
$
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
$
$ head -1 /etc/rpi-issue
Raspberry Pi reference 2019-06-20
$
$ vcgencmd version
Feb 12 2020 12:38:08
Copyright (c) 2012 Broadcom
version 53a54c770c493957d99bf49762dfabc4eee00e45 (clean) (release) (start)
$
$ apt --version
apt 1.8.2.1 (armhf)
$
$ apt-get --version
apt 1.8.2.1 (armhf)
Supported modules:
*Ver: Standard .deb
*Pkg: Debian dpkg interface (Priority 30)
Pkg: Debian APT solver interface (Priority -1000)
Pkg: Debian APT planner interface (Priority -1000)
S.L: 'deb' Debian binary tree
S.L: 'deb-src' Debian source tree
Idx: Debian Source Index
Idx: Debian Package Index
Idx: Debian Translation Index
Idx: Debian dpkg status file
Idx: Debian deb file
Idx: Debian dsc file
Idx: Debian control file
Idx: EDSP scenario file
Idx: EIPP scenario file
$
$ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 118712 49964 642916 0 0 0 1 1 0 3 0 97 0 0
$
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 14G 4.1G 9.4G 31% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 47M 417M 11% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 52M 202M 21% /boot
tmpfs 93M 0 93M 0% /run/user/1000
$
Display More
In dmesg sind keine Auffälligkeiten zu finden.
Was ich bisher versucht habe:
- https://ubuntuforums.org/showthread.php?t=1204230 und https://ubuntuforums.org/showthread.php?t=2268244 erwähnen die Löschung verschiedener Cache-Verzeichnisse:
Dann nochmals update & upgrade:
Code
Display More$ sudo apt update Hit:1 http://deb.debian.org/debian unstable InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:3 http://archive.raspberrypi.org/debian buster InRelease Reading package lists... Done Building dependency tree Reading state information... Done 13 packages can be upgraded. Run 'apt list --upgradable' to see them. $ sudo apt upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek libruby2.5 raspi-config rpi-eeprom rpi-eeprom-images ruby2.5 ruby2.5-dev ruby2.5-doc wireguard-dkms 13 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 22.1 MB of archives. After this operation, 2,630 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian unstable/main armhf wireguard-dkms all 1.0.20200623-1 [254 kB] Get:2 http://archive.raspberrypi.org/debian buster/main armhf firmware-atheros all 1:20190114-1+rpt7 [3,887 kB] Get:3 http://raspbian.mirror.uk.sargasso.net/raspbian buster/main armhf ruby2.5-dev armhf 2.5.5-3+deb10u2 [415 kB] Get:4 http://raspbian.mirror.uk.sargasso.net/raspbian buster/main armhf libruby2.5 armhf 2.5.5-3+deb10u2 [3,146 kB] Get:7 http://archive.raspberrypi.org/debian buster/main armhf firmware-brcm80211 all 1:20190114-1+rpt7 [4,457 kB] Get:5 http://raspbian.mirror.uk.sargasso.net/raspbian buster/main armhf ruby2.5 armhf 2.5.5-3+deb10u2 [400 kB] Get:6 http://raspbian.mirror.uk.sargasso.net/raspbian buster/main armhf ruby2.5-doc all 2.5.5-3+deb10u2 [2,149 kB] Get:8 http://archive.raspberrypi.org/debian buster/main armhf firmware-libertas all 1:20190114-1+rpt7 [3,423 kB] Get:9 http://archive.raspberrypi.org/debian buster/main armhf firmware-misc-nonfree all 1:20190114-1+rpt7 [3,070 kB] Get:10 http://archive.raspberrypi.org/debian buster/main armhf firmware-realtek all 1:20190114-1+rpt7 [495 kB] Get:11 http://archive.raspberrypi.org/debian buster/main armhf raspi-config all 20200707 [26.4 kB] Get:12 http://archive.raspberrypi.org/debian buster/main armhf rpi-eeprom all 7.5-1 [322 kB] Get:13 http://archive.raspberrypi.org/debian buster/main armhf rpi-eeprom-images all 7.5-1 [5,952 B] Fetched 22.1 MB in 22s (982 kB/s) apt-listchanges: Reading changelogs... Segmentation fault $ - Wie in https://askubuntu.com/questions/5937…t-at-libapt-pkg habe ich die Ausgabe von strace angeschaut, werde daraus aber nicht schlauer:Diff
Display More$ sudo strace apt upgrade -y [Gekürzt bis zu "Reading changelogs..."] wait4(15061, apt-listchanges: Reading changelogs... [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 15061 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15061, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- pipe([15, 17]) = 0 fcntl64(15, F_SETFD, FD_CLOEXEC) = 0 fcntl64(17, F_SETFD, FD_CLOEXEC) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x766c5078) = 15193 close(15) = 0 fcntl64(17, F_GETFL) = 0x1 (flags O_WRONLY) fstat64(17, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 write(17, "/var/cache/apt/archives/firmware"..., 815) = 815 close(17) = 0 wait4(15193, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 15193 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15193, si_uid=0, si_status=0, si_utime=0, si_stime=1} --- rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76aed120}, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76aed120}, 8) = 0 rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76aed120}, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76aed120}, 8) = 0 rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76aed120}, {sa_handler=SIG_IGN, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76aed120}, 8) = 0 stat64("/var/lib/apt/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/var/lib/apt/extended_states", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 openat(AT_FDCWD, "/var/lib/apt/extended_states", O_RDONLY|O_LARGEFILE) = 15 fcntl64(15, F_SETFD, FD_CLOEXEC) = 0 getpid() = 15057 openat(AT_FDCWD, "/var/lib/apt/extended_states.qR92xJ", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 17 umask(000) = 022 umask(022) = 000 fchmod(17, 0644) = 0 fcntl64(17, F_SETFD, FD_CLOEXEC) = 0 read(15, "", 32771) = 0 close(17) = 0 rename("/var/lib/apt/extended_states.qR92xJ", "/var/lib/apt/extended_states") = 0 chmod("/var/lib/apt/extended_states", 0644) = 0 close(15) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x30e899b2} --- +++ killed by SIGSEGV +++ Segmentation fault - https://askubuntu.com/a/610425/549598 schlägt vor, eine Datei /etc/apt/apt.conf.d/00bugs mit folgendem Inhalt zu erstellen - habe ich versucht, ohne Erfolg:
Wie gehe ich da nun weiter vor? ![]()