4

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 :)

soo kin wah
  • 43
  • 1
  • 1
  • 4

1 Answers1

2

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.

N0rbert
  • 103,263