此错误在 Synaptic 和终端中均发生,因此我无法更新或安装新软件包:
LANG=en_US;sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of gens:i386:
gens:i386 depends on libc6.
gens:i386 depends on libgcc1.
gens:i386 depends on libglib2.0-0 (>= 2.4.0).
gens:i386 depends on libgtk2.0-0 (>= 2.4.0).
gens:i386 depends on libpng12-0.
gens:i386 depends on libsdl1.2debian (>= 1.1.3).
gens:i386 depends on libstdc++6.
gens:i386 depends on xdg-utils.
gens:i386 depends on zlib1g.
dpkg: error processing gens:i386 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gens:i386
我搜索了软件包以将其删除,但没有找到。当我尝试从 synaptic 安装某些东西时,系统显示以下内容:
Gtk-CRITICAL **: IA__gtk_assistant_set_page_header_image: assertion `child != NULL' failed at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 27, <> line 4.
dpkg: errore fatale non recuperabile, uscita: [fatal error not recoverable, exit]
errore di sintassi: gruppo "cdemu" sconosciuto nel file statoverride [syntax error: "cdemu" group unknown in the file staoverride(?)]
E: Sub-process /usr/bin/dpkg returned an error code (2)
dpkg -l gens 的输出
raffaele@Natty:~$ LANG=en_US;dpkg -l gens*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
un gens <none> (no description available)
dpkg -l *cdemu 的输出
raffaele@Natty:~$ dpkg -l *cdemu*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome Versione Descrizione
+++-==============-==============-============================================
ii cdemu-client 1.4.0-0ubuntu1 Command-line client to control CDEmu daemon
ii cdemu-daemon 1.4.0-0ubuntu1 CDEmu daemon
un cdemu-daemon-d <none> (nessuna descrizione disponibile)
ii gcdemu 1.4.0-0ubuntu1 GNOME application to control CDEmu daemon
cat /var/lib/dpkg/statoverride 的输出
raffaele@Natty:~$ cat /var/lib/dpkg/statoverride
root mlocate 2755 /usr/bin/mlocate
mpd audio 755 /var/lib/mpd
mpd audio 755 /var/lib/mpd/playlists
mpd audio 755 /var/log/mpd
mpd audio 755 /var/run/mpd
hplip root 755 /var/run/hplip
root ssl-cert 710 /etc/ssl/private
root cdemu 2755 /usr/bin/cdemud
mpd audio 640 /etc/mpd.conf
root crontab 2755 /usr/bin/crontab
答案1
我已经找到并删除了 .deb
LANG=en,us sudo dpkg -r gens:i386
现在我必须解决其他 cdemu/gnome 问题(见上文)。
最后我找到了一个解决方案(我希望能够帮助别人):
在终端中输入
sudo gedit /var/lib/dpkg/statoverride
删除文件中关于 cdemu 的行
root cdemu 2755 /usr/bin/cdemud
保存。现在您可以更新。(问题是ubuntu natty 错误)