tech:pb_apt-get_update
Table des matières
Pb apt-get update
Pb appstreamcli
# apt-get update Fetched 61.8 MB in 12s (5,054 kB/s) The AppStream system cache was updated, but some errors were detected, which might lead to missing metadata. Refer to the verbose log for more information. Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /d ev/null; fi' E: Sub-process returned an error code
Solution
appstreamcli refresh-cache --force
Pb apt-get hang out
# strace -ff apt-get update
...
[pid 29158] select(6, [5], [], NULL, {tv_sec=0, tv_usec=500000}) = 0 (Timeout)
[pid 29158] rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
[pid 29158] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
0% [Working]) = 131, "\r0% [Working]", 13
[pid 29158] select(6, [5], [], NULL, {tv_sec=0, tv_usec=500000}) = 0 (Timeout)
[pid 29158] rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
[pid 29158] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
0% [Working]) = 131, "\r0% [Working]", 13
[pid 29158] select(6, [5], [], NULL, {tv_sec=0, tv_usec=500000}) = 0 (Timeout)
[pid 29158] rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
[pid 29158] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
0% [Working]) = 131, "\r0% [Working]", 13
[pid 29158] select(6, [5], [], NULL, {tv_sec=0, tv_usec=500000}) = 0 (Timeout)
[pid 29158] rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
[pid 29158] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
0% [Working]) = 131, "\r0% [Working]", 13
Solution
Corriger /etc/resolv.conf
#domain acme.local search acme.local options rotate timeout:1 retries:1 nameserver 192.168.1.1 nameserver 8.8.8.8
tech/pb_apt-get_update.txt · Dernière modification : de 127.0.0.1
