Код: Выделить всё
sudo apt-get update && apt-get upgrade
Однако было возвращено следующее:
Код: Выделить всё
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://dl.yarnpkg.com/debian stable InRelease
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Код: Выделить всё
dpkg: error: error installing new file '/var/lib/dpkg/status': Permission denied
Код: Выделить всё
sudo rm -fr /var/cache/apt
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bak
sudo touch /var/lib/dpkg/status
sudo apt clean
sudo apt update && sudo apt upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Код: Выделить всё
ls -alh /var/lib/dpkg/status
> -rw-r--r-- 2 root root 8.9K Jun 26 08:23 /var/lib/dpkg/status
sudo whoami
> root
[edit]
Нехороший знак, но поигрался с приведенными выше командами, и вдруг следующее не привело к появлению ошибка:
Код: Выделить всё
sudo -s
sudo -i
sudo apt --fix-broken install
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Подробнее здесь: https://stackoverflow.com/questions/786 ... ion-denied