运行以下四个命令后,我的系统最终处于损坏的软件包状态:
1) apt-get purge nvidia*
2) apt-get autoremove
3) apt-get dist-upgrade
4) apt-get autoremove
我发现在此过程中已从系统中删除了统一调整工具,ubuntu桌面和一些基本软件包。这是以上四个命令的详细历史记录:http : //pastebin.com/PsNNAJ5t我尝试重新安装上述步骤4中历史记录中所有已删除的软件包。成功了。但是没有安装从步骤3中删除的软件包。
而且,突触包管理器不允许我安装任何有关损坏的包的抱怨。我已经尝试通过运行来修复,sudo apt-get install -f
sudo dpkg --configure -a
但没有用
~ $ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libbonoboui2-0 libbonoboui2-common libglade2-0 libgnome2-0 libgnome2-bin libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libidl-2-0 liborbit2 python-gconf
python-gnome2 python-pyorbit
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
当我尝试安装unity-tweak-tool时,它会给我该损坏的状态消息以及所需的依赖项
sudo apt-get install unity-tweak-tool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
unity-tweak-tool : Depends: unity-webapps-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
当我尝试安装它的依赖项时,它就像链条在抱怨损坏的软件包一样继续进行。在链的末尾,依赖项不会安装。
如果遵循依存关系链,这将是最终结果:http : //pastebin.com/m01QX442在此链的末尾,它说E: Package 'qtbase-abi-5-5-1' has no installation candidate
或者E: Package 'qtdeclarative-abi-5-5-0' has no installation candidate
我也不了解如果没有ubuntu-desktop
如何立即修复系统,我的系统将如何运行?
谢谢
我已经按照以下顺序进行了以下修复:
sudo ppa-purge ppa:kubuntu-ppa/backports
sudo apt-get install -f
sudo apt autoremove
sudo apt-get install unity-tweak-tool
当我执行ppa-purge时,结果如下:
The following package was automatically installed and is no longer required:
libxcb-xinerama0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
packagekit-backend-aptcc python3-packagekit
Suggested packages:
libqt4-declarative-folderlistmodel libqt4-declarative-gestures
libqt4-declarative-particles libqt4-declarative-shaders qt4-qmlviewer
libqt4-dev libqt5libqgtk2 qt4-qtconfig packagekit-backend-smart
Recommended packages:
packagekit
The following packages will be REMOVED:
libpackagekit-glib2-18
The following NEW packages will be installed:
packagekit-backend-aptcc python3-packagekit
The following packages will be DOWNGRADED:
aptdaemon aptdaemon-data breeze-icon-theme gir1.2-packagekitglib-1.0
libqt4-dbus libqt4-declarative libqt4-network libqt4-script libqt4-sql
libqt4-sql-sqlite libqt4-xml libqt4-xmlpatterns libqt5core5a libqt5dbus5
libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5qml5
libqt5quick5 libqt5sql5 libqt5sql5-mysql libqt5sql5-sqlite libqt5svg5
libqt5waylandclient5 libqt5webkit5 libqt5widgets5 libqt5x11extras5
libqt5xml5 libqtcore4 libqtdbus4 libqtgui4 packagekit packagekit-tools
python-aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon
python3-aptdaemon.gtk3widgets qdbus qtchooser qtcore4-l10n
qttranslations5-l10n qtwayland5
0 upgraded, 2 newly installed, 43 downgraded, 1 to remove and 0 not upgraded.
Need to get 34.1 MB of archives.
After this operation, 28.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
安装统一调整工具会导致以下结果:
sudo apt-get install unity-tweak-tool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libandroid-properties1 libhardware2 libhud2 libhybris libhybris-common1 libmedia1 liboxideqt-qmlplugin liboxideqtcore0 liboxideqtquick0 libqt5feedback5 libqt5multimedia5 libqt5organizer5
libqt5positioning5 libqt5quicktest5 libqt5test5 libubuntugestures5 libubuntutoolkit5 libunity-action-qt1 libunity-webapps0 qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
qml-module-qtfeedback qml-module-qtgraphicaleffects qml-module-qtquick-layouts qml-module-qtquick-window2 qml-module-qtquick2 qml-module-qttest qml-module-ubuntu-components
qml-module-ubuntu-layouts qml-module-ubuntu-onlineaccounts qml-module-ubuntu-performancemetrics qml-module-ubuntu-test qml-module-ubuntu-web qtdeclarative5-accounts-plugin
qtdeclarative5-qtquick2-plugin qtdeclarative5-ubuntu-ui-toolkit-plugin qtdeclarative5-unity-action-plugin suru-icon-theme ubuntu-mobile-icons ubuntu-ui-toolkit-theme unity-webapps-common
unity-webapps-qml unity-webapps-service webapp-container webbrowser-app
Suggested packages:
xul-ext-unity | unity-chromium-extension qtdeclarative5-online-accounts-client0.1 qtdeclarative5-ubuntu-content1 qtdeclarative5-ubuntu-download-manager0.1
qml-module-ubuntu-onlineaccounts-client
The following NEW packages will be installed:
libandroid-properties1 libhardware2 libhud2 libhybris libhybris-common1 libmedia1 liboxideqt-qmlplugin liboxideqtcore0 liboxideqtquick0 libqt5feedback5 libqt5multimedia5 libqt5organizer5
libqt5positioning5 libqt5quicktest5 libqt5test5 libubuntugestures5 libubuntutoolkit5 libunity-action-qt1 libunity-webapps0 qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
qml-module-qtfeedback qml-module-qtgraphicaleffects qml-module-qtquick-layouts qml-module-qtquick-window2 qml-module-qtquick2 qml-module-qttest qml-module-ubuntu-components
qml-module-ubuntu-layouts qml-module-ubuntu-onlineaccounts qml-module-ubuntu-performancemetrics qml-module-ubuntu-test qml-module-ubuntu-web qtdeclarative5-accounts-plugin
qtdeclarative5-qtquick2-plugin qtdeclarative5-ubuntu-ui-toolkit-plugin qtdeclarative5-unity-action-plugin suru-icon-theme ubuntu-mobile-icons ubuntu-ui-toolkit-theme unity-tweak-tool
unity-webapps-common unity-webapps-qml unity-webapps-service webapp-container webbrowser-app
0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.1 MB of archives.
After this operation, 166 MB of additional disk space will be used.
Do you want to continue? [Y/n]
看了这里的答案后我才有了这个主意
我认为原因是,当我执行升级时,它已经使用Kubuntu ppa升级了其他软件包所需的某些依赖项。但是,降级版本是软件包正常运行所必需的。我不知道确切是哪个包裹。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句