如何解决“软件包安装或删除失败”?

如何解决“软件包安装或删除失败”?

我最近无法更新、安装甚至卸载东西。

这就是它向我展示的……

installArchives() failed: Preconfiguring packages ...
Adding user solik to group netdev
Preconfiguring packages ...
Preconfiguring packages ...
Preconfiguring packages ...
Selecting previously unselected package python-wicd.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 305977 files and directories currently installed.)
Unpacking python-wicd (from .../python-wicd_1.7.2.4-2ubuntu1_all.deb) ...
Selecting previously unselected package wicd-daemon.
Unpacking wicd-daemon (from .../wicd-daemon_1.7.2.4-2ubuntu1_all.deb) ...
Selecting previously unselected package wicd-gtk.
Unpacking wicd-gtk (from .../wicd-gtk_1.7.2.4-2ubuntu1_all.deb) ...
Selecting previously unselected package wicd.
Unpacking wicd (from .../wicd_1.7.2.4-2ubuntu1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for hicolor-icon-theme ...
Setting up ushare (1.1a-0ubuntu9) ...
/var/lib/dpkg/info/ushare.config: 26: /etc/ushare.conf: string: not found
dpkg: error processing ushare (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up python-wicd (1.7.2.4-2ubuntu1) ...
No apport report written because MaxReports is reached already
Setting up wicd-daemon (1.7.2.4-2ubuntu1) ...
 * Starting Network connection manager wicd
   ...done.
Processing triggers for ureadahead ...
Setting up wicd-gtk (1.7.2.4-2ubuntu1) ...
Setting up wicd (1.7.2.4-2ubuntu1) ...
Errors were encountered while processing:
 ushare
Error in function: 
Setting up ushare (1.1a-0ubuntu9) ...
/var/lib/dpkg/info/ushare.config: 26: /etc/ushare.conf: string: not found
dpkg: error processing ushare (--configure):
 subprocess installed post-installation script returned error exit status 127

我该如何解决这个问题?

答案1

尝试:

sudo apt-get install ushare

和/或

sudo dpkg-reconfigure ushare

软件包损坏或未完全安装

跑步:

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f

相关内容