无法安装 Unity Tweak 工具。请帮忙

无法安装 Unity Tweak 工具。请帮忙

有谁能帮我吗?我想安装 Unity Tweak 工具,但安装不了。

这是错误:

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.

以下是输出apt-cache policy unity-tweak-tool

$apt-cache policy unity-tweak-tool
unity-tweak-tool: 
Installed: (none) 
Candidate: 0.0.7ubuntu2 
Version table: 
0.0.7ubuntu2 500
 500 ru.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
 500 ru.archive.ubuntu.com/ubuntu xenial/universe i386 Packages 0.0.7-0~210~ubuntu16.04.1 500
 500 ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu xenial/main amd64 Packages 
 500 ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu xenial/main i386 Packages

apt-cache policy unity-webapps-common unity-tweak-tool

unity-webapps-common:
  Installed: (none)
  Candidate: 2.4.17+15.10.20150616-0ubuntu2
  Version table:
     2.4.17+15.10.20150616-0ubuntu2 500
        500 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://ru.archive.ubuntu.com/ubuntu xenial/main i386 Packages
unity-tweak-tool:
  Installed: (none)
  Candidate: 0.0.7ubuntu2
  Version table:
     0.0.7ubuntu2 500
        500 http://ru.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://ru.archive.ubuntu.com/ubuntu xenial/universe i386 Packages

sudo apt-get update

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://ru.archive.ubuntu.com/ubuntu xenial InRelease                  
Hit:3 http://dl.google.com/linux/chrome/deb stable Release            
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease     
Hit:5 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease    
Hit:7 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:8 http://ppa.launchpad.net/eiffelstudio-team/ppa/ubuntu xenial

sudo apt-get upgrade

Reading package lists... Done Building dependency tree        Reading
state information... Done Calculating upgrade... Done The following
packages were automatically installed and are no longer required:  
accountsservice-ubuntu-schemas apparmor-easyprof
apparmor-easyprof-ubuntu   click click-apparmor dbus-property-service
fonts-droid-fallback   fonts-noto-mono gir1.2-accounts-1.0
gir1.2-click-0.4 gir1.2-gee-0.8   gir1.2-signon-1.0
indicator-bluetooth indicator-power libandroid-properties1  
libboost-log1.58.0 libc-ares2 libclick-0.4-0 libdbus-cpp5  
libdouble-conversion1v5 libfreerdp-cache1.1 libfreerdp-client1.1  
libfreerdp-codec1.1 libfreerdp-common1.1.0 libfreerdp-core1.1  
libfreerdp-crypto1.1 libfreerdp-gdi1.1 libfreerdp-locale1.1  
libfreerdp-primitives1.1 libfreerdp-utils1.1 libgeonames0 libgflags2v5
libgoogle-glog0v5 libhardware2 libhybris libhybris-common1
libhybris-utils   liblibertine1 liblttng-ust-ctl2 liblttng-ust0
libmedia1 libmysqlclient20   libnih-dbus1 libpkcs11-helper1
libprocess-cpp3 libqt4-declarative   libqt4-network libqt4-script
libqt4-sql libqt4-sql-mysql libqt4-xml   libqt4-xmlpatterns
libqt5positioning5 libqtcore4 libqtdbus4 libqtgui4   libsdl-image1.2
libsystemsettings1 libtrust-store2 libubuntu-app-launch2   liburcu4
libva-drm1 libva-x11-1 libvncclient1 libwhoopsie-preferences0  
libwinpr-crt0.1 libwinpr-dsparse0.1 libwinpr-environment0.1
libwinpr-file0.1   libwinpr-handle0.1 libwinpr-heap0.1
libwinpr-input0.1   libwinpr-interlocked0.1 libwinpr-library0.1
libwinpr-path0.1   libwinpr-pool0.1 libwinpr-registry0.1
libwinpr-rpc0.1 libwinpr-sspi0.1   libwinpr-synch0.1
libwinpr-sysinfo0.1 libwinpr-thread0.1 libwinpr-utils0.1  
libxcb-composite0 libxcb-xinerama0 network-manager-openvpn ofono
openvpn   python3-apparmor python3-apparmor-click
python3-click-package python3-gnupg   python3-libapparmor qtcore4-l10n
signon-ui-service suru-icon-theme   system-image-common
system-image-dbus ubuntu-mobile-icons   ubuntu-touch-sounds
ubuntuone-client-data ubuntuone-credentials-common   unity-asset-pool
urfkill vlc-plugin-notify vlc-plugin-samba   whoopsie-preferences Use
'sudo apt autoremove' to remove them. 0 to upgrade, 0 to newly
install, 0 to remove and 0 not to upgrade.

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:   accountsservice-ubuntu-schemas
apparmor-easyprof apparmor-easyprof-ubuntu   click click-apparmor
dbus-property-service fonts-droid-fallback   fonts-noto-mono
gir1.2-accounts-1.0 gir1.2-click-0.4 gir1.2-gee-0.8  
gir1.2-signon-1.0 indicator-bluetooth indicator-power
libandroid-properties1   libboost-log1.58.0 libc-ares2 libclick-0.4-0
libdbus-cpp5   libdouble-conversion1v5 libfreerdp-cache1.1
libfreerdp-client1.1   libfreerdp-codec1.1 libfreerdp-common1.1.0
libfreerdp-core1.1   libfreerdp-crypto1.1 libfreerdp-gdi1.1
libfreerdp-locale1.1   libfreerdp-primitives1.1 libfreerdp-utils1.1
libgeonames0 libgflags2v5   libgoogle-glog0v5 libhardware2 libhybris
libhybris-common1 libhybris-utils   liblibertine1 liblttng-ust-ctl2
liblttng-ust0 libmedia1 libmysqlclient20   libnih-dbus1
libpkcs11-helper1 libprocess-cpp3 libqt4-declarative   libqt4-network
libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml  
libqt4-xmlpatterns libqt5positioning5 libqtcore4 libqtdbus4 libqtgui4 
libsdl-image1.2 libsystemsettings1 libtrust-store2
libubuntu-app-launch2   liburcu4 libva-drm1 libva-x11-1 libvncclient1
libwhoopsie-preferences0   libwinpr-crt0.1 libwinpr-dsparse0.1
libwinpr-environment0.1 libwinpr-file0.1   libwinpr-handle0.1
libwinpr-heap0.1 libwinpr-input0.1   libwinpr-interlocked0.1
libwinpr-library0.1 libwinpr-path0.1   libwinpr-pool0.1
libwinpr-registry0.1 libwinpr-rpc0.1 libwinpr-sspi0.1  
libwinpr-synch0.1 libwinpr-sysinfo0.1 libwinpr-thread0.1
libwinpr-utils0.1   libxcb-composite0 libxcb-xinerama0
network-manager-openvpn ofono openvpn   python3-apparmor
python3-apparmor-click python3-click-package python3-gnupg  
python3-libapparmor qtcore4-l10n signon-ui-service suru-icon-theme  
system-image-common system-image-dbus ubuntu-mobile-icons  
ubuntu-touch-sounds ubuntuone-client-data ubuntuone-credentials-common
unity-asset-pool urfkill vlc-plugin-notify vlc-plugin-samba  
whoopsie-preferences Use 'sudo apt autoremove' to remove them. 0 to
upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

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.

grep -v ^# -r /etc/apt/sources.list /etc/apt/sources.list.d/*.list

/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:deb-src http://ru.archive.ubuntu.com/ubuntu/ xenial universe multiverse restricted main
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:deb-src http://ru.archive.ubuntu.com/ubuntu/ xenial-updates universe multiverse restricted main
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb-src http://ru.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb-src http://security.ubuntu.com/ubuntu xenial-security universe multiverse restricted main
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list.d/eiffelstudio-team-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/eiffelstudio-team/ppa/ubuntu xenial main
/etc/apt/sources.list.d/embrosyn-ubuntu-cinnamon-xenial.list:deb http://ppa.launchpad.net/embrosyn/cinnamon/ubuntu xenial main
/etc/apt/sources.list.d/fingerprint-ubuntu-fingerprint-gui-xenial.list:deb http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu xenial main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list:deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial main
/etc/apt/sources.list.d/mc3man-ubuntu-gstffmpeg-keep-xenial.list:deb http://ppa.launchpad.net/mc3man/gstffmpeg-keep/ubuntu xenial main
/etc/apt/sources.list.d/moka-ubuntu-daily-xenial.list:deb http://ppa.launchpad.net/moka/daily/ubuntu xenial main
/etc/apt/sources.list.d/pasgui-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/pasgui/ppa/ubuntu xenial main
/etc/apt/sources.list.d/thomas-schiex-ubuntu-blender-xenial.list:deb http://ppa.launchpad.net/thomas-schiex/blender/ubuntu xenial main
/etc/apt/sources.list.d/webupd8team-ubuntu-atom-xenial.list:deb http://ppa.launchpad.net/webupd8team/atom/ubuntu xenial main
/etc/apt/sources.list.d/webupd8team-ubuntu-sublime-text-3-xenial.list:deb http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial main

答案1

在我的 Xenial 系统上,我可以unity-tweak-tool从宇宙存储库安装,并且它可以正常工作。

因此我建议清除其 PPA 并从存储库安装版本

sudo apt-get update
sudo apt-get install ppa-purge

sudo add-apt-repository main # add main repository for sure
sudo add-apt-repository universe # add universe
sudo add-apt-repository multiverse # add multiverse
sudo add-apt-repository restricted # add restricted

sudo add-apt-repository -r ppa:upubuntu-com/gtk3 # to fix apt-get update

sudo ppa-purge ppa:freyja-dev/unity-tweak-tool-daily

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f
sudo dpkg --configure -a

sudo apt-get install unity-tweak-tool

如果所有这些步骤都不起作用,请尝试从切换到其他 Ubuntu 镜像软件与更新

aptitude也可以尝试一下(可使用 安装sudo apt-get install aptitude

sudo aptitude install unity-tweak-tool

相关内容