Итак, я пытаюсь установить плагин Flash player, но он говорит, что update-notifier-common не настроен. Поэтому я делаю sudo dpkg --configure update-notifier-common
, и он отображает
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 29, in <module>
import debconf
ImportError: No module named debconf
dpkg: error processing update-notifier-common (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
update-notifier-common
Но sudo apt-get install debconf
дает
Setting up update-notifier-common (0.147.1) ...
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 29, in <module>
import debconf
ImportError: No module named debconf
dpkg: error processing update-notifier-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of flashplugin-installer:
flashplugin-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
Package update-notifier-common is not configured yet.
dpkg: error processing flashplugin-installer (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
update-notifier-common
flashplugin-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
Итак, похоже, что я не могу настроить update-notifier-common до тех пор, пока я не ' Я установил debconf, и я не смогу установить debconf, пока не установлю debconf и не настрою update-notifier-common. Помощь?
Ваша установка debconf кажется поврежденной из-за отсутствия библиотеки debconf. Если вы не получите это:
$ ls -l /usr/lib/python2.7/dist-packages/debconf.py*
lrwxrwxrwx 1 root root 34 nov 3 14:20 /usr/lib/python2.7/dist-packages/debconf.py -> ../../../share/pyshared/debconf.py
-rw-r--r-- 1 root root 6013 dic 9 01:58 /usr/lib/python2.7/dist-packages/debconf.pyc
$ ls -l /usr/share/pyshared/debconf.py
-rw-r--r-- 1 root root 5971 nov 3 14:20 /usr/share/pyshared/debconf.py
Тогда вы в замешательстве. Вы можете попытаться восстановить его, используя:
mkdir -p ~/debconf.bk
sudo mv /usr/lib/python2.7/dist-packages/debconf.pyc ~/debconf.bk
sudo mv /usr/share/pyshared/debconf.py ~/debconf.bk
apt-get download debconf
dpkg --extract debconf*.deb
sudo pycompile -p debconf
sudo apt-get -f install
Нет необходимости в длительном процессе, указанном Брайаном.
sudo apt-get install --reinstall debconf
должен помочь вам.
Вам нужно обновить /usr/bin/python
, чтобы он указывал на версию Python 2.7