Ошибки Dpkg после обновления 16,10

Выполнение любой способной команды говорит мне install -f. Если я работаю apt install -f, Я получаю это:

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:
  bsdcpio cgmanager cl-swank cpp-5-doc fgetty fonts-texgyre foomatic-db-gutenprint fp-compiler-2.6.4 fp-docs-2.6.4
  fp-ide-2.6.4 fp-units-base-2.6.4 fp-units-db-2.6.4 fp-units-fcl-2.6.4 fp-units-fv-2.6.4 fp-units-gfx-2.6.4
  fp-units-gtk2-2.6.4 fp-units-math-2.6.4 fp-units-misc-2.6.4 fp-units-multimedia-2.6.4 fp-units-net-2.6.4
  fp-units-rtl-2.6.4 fp-utils-2.6.4 fpc-2.6.4 fpc-source-2.6.4 gcc-5-base:i386 gimp-gutenprint gnupg-curl gnupg-doc
  gnuplot5-doc gobjc-5 gobjc-5-multilib guile-2.0 guile-2.0-doc guile-gnutls gutenprint-doc gutenprint-locales
  ijsgutenprint lazarus-1.4.0 lazarus-doc-1.4.0 lazarus-ide-1.4.0 lazarus-ide-gtk2-1.4.0 lazarus-src-1.4.0
  lcl-1.4.0 lcl-gtk2-1.4.0 lcl-nogui-1.4.0 lcl-units-1.4.0 lcl-utils-1.4.0 lib32objc-5-dev lib32objc4
  liballegro-acodec5.0 liballegro-audio5.0 liballegro-dialog5.0 liballegro-image5.0 liballegro-ttf5.0
  libapparmor1:i386 libboost-atomic1.58.0 libboost-chrono1.58.0 libboost-context1.58.0 libboost-coroutine1.58.0
  libboost-graph-parallel1.58.0 libboost-graph1.58.0 libboost-locale1.58.0 libboost-log1.58.0 libboost-math1.58.0
  libboost-mpi1.58.0 libboost-random1.58.0 libboost-serialization1.58.0 libboost-test1.58.0 libboost-timer1.58.0
  libboost-wave1.58.0 libclutter-1.0-dbg libclutter-gst-2.0-0 libclutter-gtk-1.0-dbg libgail-3-0-dbg libgail-dbg
  libglpk36 libgnomeada2.24.4 libgnuplot-iostream-dev libgrilo-0.2-1 libgsm1:i386 libgutenprintui2-1
  libhunspell-1.3-0-dbg libicu55-dbg libiscsi2 libjson-c2:i386 libkadm5clnt-mit9 libkadm5srv-mit9
  libkf5dbusaddons-bin libkf5gapidrive5 libkf5iconthemes-bin libkf5identitymanagement5 libkf5pimtextedit5
  libkf5xmlgui-bin liblink-grammar4 liblivemedia50 libnewt0.52:i386 libobjc-5-dev libode4 libpango1.0-0-dbg
  libprocps4 libreadline7:i386 librhythmbox-core9 libroar-plugins-universal libsctp1 libsidutils0 libtinfo-dev:i386
  libtinyxml2-2v5 libvpx3:i386 libwacom-bin libwebpdemux1 libwebrtc-audio-processing-0 libx32objc-5-dev libx32objc4
  libxapian-dev lksctp-tools myspell-lt python-gnuplot python-pyatspi python3-dbus.mainloop.qt
  qml-module-org-kde-activities sonnet-plugins tex4ht-common xapian-examples
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  click-apparmor
The following packages will be upgraded:
  click-apparmor
1 upgraded, 0 newly installed, 0 to remove and 2055 not upgraded.
6 not fully installed or removed.
Need to get 0 B/10.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

Если я нажимаю y, Мне дают:

(Reading database ... 1598890 files and directories currently installed.)
Preparing to unpack .../click-apparmor_0.3.17_amd64.deb ...
Traceback (most recent call last):
  File "/usr/bin/click", line 55, in <module>
    from click import commands
ImportError: cannot import name 'commands'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/click", line 55, in <module>
    from click import commands
ImportError: cannot import name 'commands'
dpkg: error processing archive /var/cache/apt/archives/click-apparmor_0.3.17_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/click-apparmor_0.3.17_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg --configure -a не дает вывода. Я не могу удалить или произвести чистку click или python3-apparmor-click потому что ubuntu-app-launch зависит от них, и от чтения описания, ubuntu-app-launch важно.

Я не могу install python3-apparmor-click=0.3.13.1 потому что даже при том, что это - версия click хочет, это, кажется, не существует.

Что я могу сделать здесь?

1
задан 16 October 2016 в 12:58

1 ответ

Решение закончило тем, что было:

  • sudo rm `which click`
  • apt autoremove -f click click-apparmor ubuntu-app-launch
  • sudo reboot
  • apt update
  • do-release-upgrade (для окончания прерванного обновления)

И apt работает снова.

1
ответ дан 7 December 2019 в 15:46

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

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