Я не могу удалить пакеты и показывает E: Неудовлетворенные зависимости. Попробуйте 'apt --fix-broken install' без пакетов (или укажите решение) [duplicate]

Я пытаюсь удалить пакет кодовых блоков, как показано ниже, но он показывает ошибку, подобную этой. Я пробовал следующее:

sudo apt-get install -f
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

В rung sudo apt-get remove codeblocks я вижу следующую ошибку:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 codeblocks-contrib : Depends: libboost-system1.67.0 but it is not going to be installed
                      Depends: libwxgtk3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
                      Depends: libwxsmithlib0 (= 20.03) but 20.03-3 is to be installed
                      Depends: codeblocks (= 20.03) but it is not going to be installed
                      Recommends: valgrind but it is not going to be installed
                      Recommends: cppcheck but it is not going to be installed
                      Recommends: cscope but it is not going to be installed
                      Recommends: cccc but it is not going to be installed
 codeblocks-dev : Depends: libcodeblocks0 (= 20.03) but 20.03-3 is to be installed
 codeblocks-libwxcontrib0 : Depends: libwxgtk3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Я пробовал sudo apt --fix-broken install , которая дает следующий вывод:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libllvm9
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  codeblocks-contrib codeblocks-dev
Recommended packages:
  valgrind
The following packages will be REMOVED:
  codeblocks-libwxcontrib0 codeblocks-libwxcontrib0-dbgsym codeblocks-wxcontrib-dev codeblocks-wxcontrib-headers
The following packages will be upgraded:
  codeblocks-contrib codeblocks-dev
2 upgraded, 0 newly installed, 4 to remove and 33 not upgraded.
6 not fully installed or removed.
Need to get 0 B/4.969 kB of archives.
After this operation, 6.059 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 190539 files and directories currently installed.)
Preparing to unpack .../codeblocks-contrib_20.03-3_amd64.deb ...
Unpacking codeblocks-contrib (20.03-3) over (20.03) ...
dpkg: error processing archive /var/cache/apt/archives/codeblocks-contrib_20.03-3_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/codeblocks/wxContribItems/libwxchartctrl.so.0.0.1', which is also in package codeblocks-libwxcontrib0 20.03
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/codeblocks-contrib_20.03-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

После этого я не могу установить ни один пакет. Как я могу решить эту проблему?

1
задан 18 July 2020 в 10:05

1 ответ

Вы можете полностью удалить кодовые блоки и их зависимости, выполнив следующую команду на терминале

sudo apt purge codeblocks
sudo apt autoremove codeblocks
0
ответ дан 30 July 2020 в 22:06

Другие вопросы по тегам:

Похожие вопросы: