0

I am getting this error

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.

But i cannot see what is the broken packages

after apt policy ttf-dejavu-core

I got this 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

after running sudo apt install -f

I got this lines Reading package lists... Done Building dependency tree
Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

After running cat /etc/apt/sources.list I get these lines in my terminal

` root@mohsin:~# cat /etc/apt/sources.list ############################################################# ################### OFFICIAL 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 Partner Repo

deb http://archive.canonical.com/ubuntu precise partner deb-src http://archive.canonical.com/ubuntu precise partner

Ubuntu Extras Repo

deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main deb http://archive.ubuntu.com/ubuntu xenial universe main `

  • What is the Ubuntu version? Run sudo apt install -f. – Pilot6 Jun 21 '18 at 8:00
  • @Pilot6 my ubuntu versioon is 16.04. After running sudo apt install -f I got this Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. – Mohsin Jun 21 '18 at 8:04
  • What command gives you the output ypu posted in the question? Is universe repo enabled? Did you ever run sudo apt update? – Pilot6 Jun 21 '18 at 8:06
  • @Pilot6 I want to install sudo apt-get install phpmyadmin php-mbstring php-gettext in my 16.04 linux but it giving me error this lines 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. I tried to install mysql-client but same error E: Unable to correct problems, you have held broken packages. – Mohsin Jun 21 '18 at 8:09
  • Please post additional information TO YOUR QUESTION using edit link. Please post output of apt policy ttf-dejavu-core there. – Pilot6 Jun 21 '18 at 8:11
0

Try this

apt-get autoremove

apt-get update

If you get broken help packages error while apt-get update, check in /etc/apt/sources.list if updates are enabled or not.

  • could you explain why this should do any difference ? – Soren A Jun 21 '18 at 9:42
  • @newbie this lines didn't solve the error apt-get autoremove apt-get update . how to check in this file sources.list updates are enabled or not ? – Mohsin Jun 21 '18 at 9:54
  • @ Soren AUpdates might contain the updated packages you need. "Important security updates (...)". Updates that fix security vulnerabilities. They are managed by the Ubuntu Security Team and are designed to change the behavior of the package as little as possible "Recommended updates (...)". Updates for serious bugs other than security vulnerabilities. – newbie Jun 21 '18 at 10:01
  • @Soren A "Unsupported updates (...)". New versions of packages which have been backported to an older release. Packages may contain new features, may introduce new interfaces, and bugs. help.ubuntu.com/community/Repositories/Ubuntu#Updates_Tab I once ran into held broken packages while running apt-get update and uncommenting update repository helped me out – newbie Jun 21 '18 at 10:01
  • @Mohsin /etc/apt has file named as sources.list. cat sources.list There might be repos having "updates" at the end. Check if they are commented out. – newbie Jun 21 '18 at 10:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.