dpkg --get-selections | grep hold 在 16.04 中不起作用

dpkg --get-selections | grep hold 在 16.04 中不起作用

我收到此错误

The following packages have unmet dependencies: phpmyadmin : Depends: ttf-dejavu-core but it is not going to be installed Recommends: mysql-client E: Unable to correct problems, you have held broken packages.

但我看不到破损的包裹是什么

apt policy ttf-dejavu-core

我懂了ttf-dejavu-core: Installed: (none) Candidate: 2.33-2ubuntu1 Version table: 2.33-2ubuntu1 500 500 http://us.archive.ubuntu.com/ubuntu precise/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu precise/main i386 Packages

跑步后sudo apt install -f

我得到了这句话Reading package lists... Done Building dependency tree
Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

运行后cat /etc/apt/sources.list我在终端上看到这些行

` root@mohsin:~# cat /etc/apt/sources.list ################################################################ ################### 官方 UBUNTU REPOS ################### ################################################################

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted 
universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted 
universe multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise-security main 
restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main 
restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main 
restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-security main 
restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main 
restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main 
 restricted universe multiverse
Ubuntu 合作伙伴仓库

德布http://archive.canonical.com/ubuntu精准合作伙伴 deb-srchttp://archive.canonical.com/ubuntu精准合作伙伴

Ubuntu Extras 仓库

德布http://extras.ubuntu.com/ubuntu精确的主 deb srchttp://extras.ubuntu.com/ubuntu精确的主要 debhttp://archive.ubuntu.com/ubuntuxenial 宇宙主要`

答案1

尝试这个

apt-get 自动删除

apt-get 更新

如果在 apt-get 更新时收到损坏的帮助包错误,请检查 /etc/apt/sources.list 是否启用了更新。

相关内容