Score:0

Ubuntu Upgrade to 20.04 is not working

in flag

After a long time I opened by system and trying to upgrade Ubuntu from 18.04.06 LTS to 20.04.3. But Its not working. As there is no error message I am unable to figure out the issue. After few minutes in the upgrade window, it shutdown without any error. Anyone faced the same issue. enter image description here

Below is the output when done through command prompt.

~$ sudo do-release-upgrade

Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1,554 B]                                                                                                       
Get:2 Upgrade tool [1,340 kB]                                                                                                                
Fetched 1,342 kB in 0s (0 B/s)                                                                                                               
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
extracting 'focal.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Hit http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                        
Hit http://linux.teamviewer.com/deb stable InRelease                                                                                         
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                    
Hit http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease                                                                      
Hit https://download.docker.com/linux/ubuntu bionic InRelease                                                                                
Hit http://dl.google.com/linux/chrome/deb stable InRelease                                                                                   
Hit http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic InRelease                                                                           
Hit http://packages.microsoft.com/repos/code stable InRelease                                                                                
Hit http://archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                              
Hit http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease                                                                        
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                   
Fetched 177 kB in 0s (0 B/s)                                                                                                                 
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

Result of running systemctl status snapd.service

 
● snapd.service - Snap Daemon
   Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2022-01-08 20:37:42 CET; 7min ago
  Process: 1978 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE)
 Main PID: 1978 (code=exited, status=1/FAILURE)

Jan 08 20:37:42 sambit systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Jan 08 20:37:42 sambit systemd[1]: snapd.service: Scheduled restart job, restart counter is at 6.
Jan 08 20:37:42 sambit systemd[1]: Stopped Snap Daemon.
Jan 08 20:37:42 sambit systemd[1]: snapd.service: Start request repeated too quickly.
Jan 08 20:37:42 sambit systemd[1]: snapd.service: Failed with result 'exit-code'.
Jan 08 20:37:42 sambit systemd[1]: Failed to start Snap Daemon.
Jan 08 20:37:42 sambit systemd[1]: snapd.service: Triggering OnFailure= dependencies.

sambit16 avatar
in flag
Updated the description. The upgrade is from 18.04.06 to 20.04.3
us flag
Please post command outputs as texts (as code), instead of images.
sambit16 avatar
in flag
@ArchismanPanigrahi as the command output contains more than 8 links, I can't do it. Error: You need at least 10 reputation to post more than 8 links.
us flag
You need to format it as code, like `this`. Put three ticks, (```) above and below the output
nobody avatar
gh flag
`systemctl status snapd.service` please [edit] your question.
Someone avatar
my flag
Please [edit] your question to include the output of `systemctl status snapd.service`. @nobody :D
Organic Marble avatar
us flag
You need to remove all those ppas before upgrading. Especially webupd8 and linuxuprising.
N0rbert avatar
zw flag
... by running `ppa-purge` for these PPAs: run `sudo apt-get install ppa-purge` followed by `sudo ppa-purge ppa:linuxuprising/java` , `sudo ppa-purge ppa:openjdk-r/ppa`, `sudo ppa-purge ppa:webupd8team/java` . Then reboot and retry upgrading.
sambit16 avatar
in flag
@N0rbert I removed all PPAs. But still, I am unable to upgrade. It's the same error.
N0rbert avatar
zw flag
Run `sudo apt-get install aptitude`, add output of `aptitude search ~o` to the question.
nobody avatar
gh flag
Remove snapd the service is not running.
sambit16 avatar
in flag
Thanks Everyone for helping here. After removing snapd, I am able to upgrade to 20.04.
nobody avatar
gh flag
It would be nice if there be a error message like snap.service ist not running can not proceed. or somethin similiar :(
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.