Dpkg

Aus Vosp.info
Wechseln zu:Navigation, Suche

installiert paket Namen extrahieren und wieder (woanders) installieren

dpkg --get-selections | egrep -v "^lib|linux|deinstall|xserver|x11" | awk  '{print $1}'  > install.package.txt
apt-get install $(cat install.package.txt)

Problembehebung



automatisches apt deaktiveren

apt-get update
apt-get dist-upgrade

E: Konnte Sperre /var/lib/dpkg/lock nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar)
E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, wird es von einem anderen Prozess verwendet?

ps -alx | grep apt

4     0  3653     1  20   0   4396   844 -      Ss   ?          0:00 /bin/sh /usr/lib/apt/apt.systemd.daily update
0     0  3667  3653  20   0   4396  1548 -      S    ?          0:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held update
4   100 22846 21212  20   0  99320  8888 -      S    ?          0:12 /usr/lib/apt/methods/http
4     0 28471 17026  20   0  36240   972 -      S+   pts/0      0:00 grep --color=auto apt

systemctl stop apt-daily.timer
systemctl disable apt-daily.timer
systemctl disable apt-daily.service
systemctl daemon-reload