大家好,我正在尝试在我的 Linux 上安装 macubuntu 主题,并按照以下命令进行操作:sudo apt-get install macbuntu-os-ithemes-lts-v7
我收到以下错误:
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: macbuntu-os-ithemes-lts-v7 : Depends: gtk2-engines-pixbuf but it is not going to be installed E: Unable to correct problems, you have held broken packages.
我尝试通过以下命令安装所需的软件包来解决这个问题:
sudo apt-get install gtk2-engines-pixbuf
但现在我收到此错误:
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: gtk2-engines-pixbuf : Depends: libgtk2.0-0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed E: Unable to correct problems, you have held broken packages.
我现在无法继续。任何帮助都将不胜感激 :)
编辑:输出apt-cache policy gtk2-engines-pixbuf
gtk2-engines-pixbuf:
Installed: (none)
Candidate: 2.24.30-1ubuntu1
Version table:
2.24.30-1ubuntu1 500
500 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
编辑2:来源列表:
deb http://in.archive.ubuntu.com/ubuntu/ xenial main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu xenial restricted multiverse universe main
# deb-src http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse
# deb-src http://archive.ubuntu.com/ubuntu xenial universe
# deb-src http://archive.ubuntu.com/ubuntu xenial universe
# deb-src http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse
deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
etc/apt/sources.list.d:
/etc/apt/sources.list.d/cloudfoundry-cli.list
/etc/apt/sources.list.d/damien-moore-ubuntu-codeblocks-stable-xenial.list
/etc/apt/sources.list.d/damien-moore-ubuntu-codeblocks-stable-xenial.list.save
/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-xenial.list
/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-xenial.list.save
/etc/apt/sources.list.d/docky-core-ubuntu-stable-xenial.list
/etc/apt/sources.list.d/docky-core-ubuntu-stable-xenial.list.save
/etc/apt/sources.list.d/google-chrome.list
/etc/apt/sources.list.d/google-chrome.list.save
/etc/apt/sources.list.d/google-cloud-sdk.list
/etc/apt/sources.list.d/google-cloud-sdk.list.save
/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list
/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list.save
/etc/apt/sources.list.d/mongodb-org-3.2.list
/etc/apt/sources.list.d/mongodb-org-3.2.list.save
/etc/apt/sources.list.d/nodesource.list
/etc/apt/sources.list.d/nodesource.list.save
/etc/apt/sources.list.d/noobslab-ubuntu-macbuntu-xenial.list
/etc/apt/sources.list.d/noobslab-ubuntu-macbuntu-xenial.list.save
/etc/apt/sources.list.d/noobslab-ubuntu-themes-xenial.list
/etc/apt/sources.list.d/noobslab-ubuntu-themes-xenial.list.save
/etc/apt/sources.list.d/ondrej-ubuntu-php-xenial.list
/etc/apt/sources.list.d/ondrej-ubuntu-php-xenial.list.save
/etc/apt/sources.list.d/sublime-text.list
/etc/apt/sources.list.d/sublime-text.list.save
/etc/apt/sources.list.d/webupd8team-ubuntu-tor-browser-xenial.list
/etc/apt/sources.list.d/webupd8team-ubuntu-tor-browser-xenial.list.save
答案1
macbuntu-os-ithemes-lts-v7
依赖于gtk2-engines-pixbuf
,而 又依赖于libgtk2.0-0
,此外,必须确保gtk2-engines-pixbuf
和libgtk2.0-0
保持同一版本。
由于尚不清楚的原因,您的系统想要安装 版本2.24.30-1ubuntu1
和gtk2-engines-pixbuf
版本2.24.30-1ubuntu1.16.04.2
。libgtk2.0-0
由于2.24.30-1ubuntu1.16.04.2
的版本高于2.24.30-1ubuntu1
,因此两个软件包的版本都应该为2.24.30-1ubuntu1.16.04.2
,但如 所示apt-cache policy gtk2-engines-pixbuf
,您没有提供 版本2.24.30-1ubuntu1.16.04.2
的存储库gtk2-engines-pixbuf
。
每packages.ubuntu.com,此版本在 中可用xenial-updates/universe
,因此应启用存档的此部分,例如通过启用xenial-更新在软件和更新 → 更新。