2

Yesterday i have receive notification of upgrading my 16.04 to 18.04.

In the process, it has mentioned that i have some packages that have unmet dependencies.

after conduct sudo apt-get -f install, i obtained the following issue and hope everyone may guide me.

[UPDATED] Result of apt-get update

soo@laptop-soo:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release                     
Ign:4 http://linux.dropbox.com/ubuntu xenial InRelease                         
Hit:5 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial InRelease
Hit:6 http://my.archive.ubuntu.com/ubuntu xenial InRelease                     
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]     
Hit:8 http://packages.ros.org/ros/ubuntu xenial InRelease                      
Hit:9 http://linux.dropbox.com/ubuntu xenial Release                           
Get:10 http://my.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]   
Hit:12 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial InRelease
Get:13 http://my.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] 
Fetched 325 kB in 2s (159 kB/s)    
Reading package lists... Done

[UPDATED] Result apt-get -f install : https://pastebin.ubuntu.com/p/YjWgzT9dmG/

[UPDATED] Result sudo apt-get dist-upgrade : https://pastebin.ubuntu.com/p/33H4Rpfsm3/

[UPDATED] apt-cache policy python3

soo@laptop-soo:~$ apt-cache policy python3
python3:
  Installed: (none)
  Candidate: 3.5.1-3
  Version table:
     3.5.1-3 500
        500 http://my.archive.ubuntu.com/ubuntu xenial/main i386 Packages

[UPDATED : sudo aptitude safe-upgrade]

soo@laptop-soo:~$ sudo aptitude safe-upgrade
Resolving dependencies...                
Unable to resolve dependencies for the upgrade: no solution found.
Unable to safely resolve dependencies, try running with --full-resolver.

[UPDATED : sudo aptitude safe-upgrade --full-resolver] : https://pastebin.ubuntu.com/p/9DYmHHTxs6/ If i reply + (means install) for this output, it show the following message which seems like very dangerous to do anything..

The following ESSENTIAL packages will be BROKEN by this action:
 apt : Depends: gpgv but it is not going to be installed. or
                gpgv2 but it is not going to be installed.
       Depends: gnupg but it is not going to be installed. or
                gnupg2 but it is not going to be installed.
 dpkg : Conflicts: dpkg:amd64 but 1.18.4ubuntu1.5 is installed.
 dpkg:amd64 : Conflicts: dpkg but 1.18.4ubuntu1.5 is to be installed.
 tar : Conflicts: tar:amd64 but 1.28-2.1ubuntu0.1 is installed.
 tar:amd64 : Conflicts: tar but 1.28-2.1ubuntu0.1 is to be installed.

WARNING: Performing this action will probably cause your system to break!
         Do NOT continue unless you know EXACTLY what you are doing!
To continue, type the phrase "I am aware that this is a very bad idea":

This image show the setting for my Software and Update

Thank you so much for your attention.. Sorry for troubling you all :)

  • Thank you for the instant guidance ! I will do it right away ! Thank you :D – soo kin wah Feb 24 at 16:22
  • "Held broken packages" means you have introduced packages (usually from some non-Ubuntu PPA or other non-Ubuntu source) that are incompatible with your release of Ubuntu. There is no magic incantation to fix it - you must understand the problem in order to know the correct package(s) to remove. – user535733 Feb 24 at 16:23
  • This looks very strange. Could you please check the settings of your repositories in software-properties-gtk and select Main server here? See this Q&A for details. For me it seems that you use a not full set of repositories or they are outdated. – N0rbert Feb 24 at 16:24
  • @user535733, i have go through few article or forum about this and i have tried several methods to solve it.. but in my case, it seems like very complicated compare to those.. :( – soo kin wah Feb 24 at 16:38
  • @N0rbert, Noted. I have changed it to main server. However, it does not help and the issue remains the same.. – soo kin wah Feb 24 at 16:39
0

Start with removing obsolete Point Cloud Library PPA with

sudo add-apt-repository -r ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update

Save the lists of all installed applications to your home folder:

dpkg --get-selections > ~/dpkg_selections.txt
dpkg -l > ~/dpkg_l.txt

to restore them after fixing existing problems.


You can try with Aptitude:

sudo apt-get install aptitude
sudo aptitude safe-upgrade

But it may not help, as your system is seriously broken, so we need to fix it step-by-step. Something like:

sudo aptitude reinstall ubuntu-minimal
sudo aptitude reinstall ubuntu-standard
sudo aptitude reinstall ubuntu-system-service

sudo apt-get install -f
sudo apt-get dist-upgrade

and so on.

  • Thank you so much for the rapid response. All the steps go smoothly except 'sudo apt-get dist-upgrade' it show the E: Unmet dependencies. Try using -f. at its end. Similar result for Result of apt-get upgrade, apt-get -f install, sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade – soo kin wah Feb 24 at 8:54
  • Please update your question with latest information (after disabling PPA)). Try sudo apt-get install -f. – N0rbert Feb 24 at 10:15
  • I have updated the question. – soo kin wah Feb 24 at 12:27
  • @sookinwah please update all outputs in your question - sudo apt-get update, sudo apt-get install -f, sudo apt-get dist-upgrade and add apt-cache policy python3 requested by user535733. – N0rbert Feb 24 at 14:33
  • @user535733, I have included your suggestion's output. Thanks for the help! However, outputs for sudo apt-get install -f and sudo apt-get dist-upgrade are not fully show in above due to words limitation. – soo kin wah Feb 24 at 16:19

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.