Package dependencies could not be resolved

Solution 1:

Thought it would have been from actually "held" packages, but maybe not, or maybe not the only problem...

I've seen similar errors before caused from using non-standard repositories (wrong version/distro, odd private or PPAs). You might want to check your repos and try to reset them to "defaults."

This may not solve the problem, but making a backup copy of your current repos (sources.list... files) it would be easy to check & undo later.

Here's info from another answer of mine on Restoring Default Ubuntu Sources:

Backup the sources.list files

Just copy them to a backup folder somewhere, this should work:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
sudo cp -R /etc/apt/sources.list.d /etc/apt/sources.list.d.old

or put the copy in your home somewhere:

sudo cp -R /etc/apt/sources.list* /home/myuser/

Restoring the default Ubuntu sources.list

  • For Ubuntu, if you do this it should generate a new fresh sources.list file

    1. delete the old files (sudo rm /etc/apt/sources.list and sudo rm -R /etc/apt/sources.list.d but BACKUP FIRST).

    2. Then do either of:

      • Run the Software Sources (from the programs menu / dash, or sudo software-properties-gtk or sudo software-sources) select/check-mark some repos, pick a server and update.

      • OR Generate a new one at http://repogen.simplylinux.ch/ using your version & country (to pick local mirrors), then copy & paste it into your new sources.list with
        gksudo gedit /etc/apt/sources.list
        or in a terminal with
        sudo nano /etc/apt/sources.list

The site http://repogen.simplylinux.ch/ has a LOT of optional PPAs too. [courtesy of How do I restore the default repositories? ]