Добрый день!
Пытаюсь обновить Ubuntu 16 LTS до версии 18 LTS
При выполнении комманды sudo apt upgrade после apt-get update возникает ошибка:
#sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpam-systemd : Depends: systemd (= 229-4ubuntu21.31)
systemd : Depends: libsystemd0 (= 229-4ubuntu21.27) but 229-4ubuntu21.31 is installed
E: Unmet dependencies. Try using -f.
При выполнении комманды: apt-get -f install
apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libxmlsec1 libxmlsec1-openssl
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
systemd
Suggested packages:
systemd-ui systemd-container
The following packages will be REMOVED:
clamav
The following packages will be upgraded:
systemd
1 upgraded, 0 newly installed, 1 to remove and 41 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3,611 kB of archives.
After this operation, 766 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 162567 files and directories currently installed.)
Removing clamav (0.103.2+dfsg-0ubuntu0.16.04.1) ...
dpkg: error processing package clamav (--remove):
cannot remove '/usr/bin/clamscan': Permission denied
Errors were encountered while processing:
clamav
E: Sub-process /usr/bin/dpkg returned an error code (1)
Подскажите пожалуста как эту проблему можно исправить?
Спасибо!