LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-29-2020, 06:22 PM   #1
Davvy123
LQ Newbie
 
Registered: Apr 2020
Posts: 6

Rep: Reputation: Disabled
Error with apt update after 20.04 LTS upgrade


Hi, I'm a rank novice with Linux, had set up an Ubuntu 18.04 LTS machine a couple years ago but haven't done much with it.

When I learned that 20.04 LTS was available, I decided to upgrade, and went through a full update of 18.04, then upgrade to 20.04. The upgrade was done, but now I have errors that pop up when I reboot the machine and then prevent me from running Software Updater. I ran the command sudo apt update, and got the following error:

$ sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_APPSTREAM_METADATA_PATHS
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'
E: Sub-process returned an error code
$

I would very much appreciate help troubleshooting this and fixing it. Thank you all for your help.
 
Old 04-30-2020, 11:03 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by Davvy123 View Post
Code:
$ sudo apt update
...
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease   
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
...
You have bionic repos still enabled in your /etc/apt/sources.list. I doubt the upgrade went successfully.

Try removing appstream:
Code:
sudo dpkg -r appstream

Last edited by shruggy; 04-30-2020 at 11:13 AM.
 
Old 04-30-2020, 11:09 AM   #3
Davvy123
LQ Newbie
 
Registered: Apr 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
You have bionic repos still enabled in your /etc/apt/sources.list. I doubt the upgrade went successfully.
Thanks for your comment; do you have a suggestion as to how I should troubleshoot/fix this problem?
 
Old 04-30-2020, 11:24 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Yes, I updated my post above.
 
Old 04-30-2020, 01:10 PM   #5
Davvy123
LQ Newbie
 
Registered: Apr 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
This is the output I got:

davvy@davvy-Inspiron-3646:~$ sudo dpkg -r appstream
[sudo] password for davvy:
dpkg: dependency problems prevent removal of appstream:
gnome-software depends on appstream.
apt-config-icons depends on appstream.

dpkg: error processing package appstream (--remove):
dependency problems - not removing
Errors were encountered while processing:
appstream
davvy@davvy-Inspiron-3646:~$
 
Old 04-30-2020, 01:34 PM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Well, the failed script most probably is /etc/apt/apt.conf.d/50appstream. Try running apt update with configuration completely switched off:
Code:
sudo apt -o Dir::Etc::Parts='' update
 
Old 04-30-2020, 02:05 PM   #7
Davvy123
LQ Newbie
 
Registered: Apr 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
OK, so I read on another forum that I may try to run "sudo apt remove appstream" instead.

And I did that, and it seems to have worked:

davvy@davvy-Inspiron-3646:~$ sudo apt remove appstream
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
chromium-browser-l10n libaudio2 libcroco3 libdouble-conversion1 libegl1-mesa libfcitx-qt5-1 libllvm6.0
libllvm7 libllvm8 libmng2 libmysqlclient20 linux-headers-4.15.0-66 linux-headers-4.15.0-66-generic
linux-image-4.15.0-66-generic linux-modules-4.15.0-66-generic linux-modules-extra-4.15.0-66-generic
python3-asn1crypto qtchooser qtcore4-l10n
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
appstream apt-config-icons gnome-software
0 upgraded, 0 newly installed, 3 to remove and 145 not upgraded.
After this operation, 2,663 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 281953 files and directories currently installed.)
Removing gnome-software (3.28.1-0ubuntu4.18.04.15) ...
Removing apt-config-icons (0.12.10-2) ...
Removing appstream (0.12.0-3ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.2-1~fakesync1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...

I then went ahead and tried the update again:

davvy@davvy-Inspiron-3646:~$ sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [106 kB]
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:7 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [31.9 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [14.0 kB]
Fetched 511 kB in 3s (193 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
146 packages can be upgraded. Run 'apt list --upgradable' to see them.
davvy@davvy-Inspiron-3646:~$

I went on to do the following command, as suggested:

$ sudo apt autoremove

..and then attempted to resume the upgrade again:

davvy@davvy-Inspiron-3646:~$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.
davvy@davvy-Inspiron-3646:~$

Edit: I checked one more time to see if the upgrade was done properly:

davvy@davvy-Inspiron-3646:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
davvy@davvy-Inspiron-3646:~$

I will check around to see if there is any remaining problem.

Do you have any other suggestions to clean up or diagnose whether everything is working properly?

Thank you for your kind help, in any event!

Last edited by Davvy123; 04-30-2020 at 02:10 PM.
 
Old 04-30-2020, 03:42 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
There are web pages on how to do it but the automatic way is supposed to be disabled until about June. 20.04.1 version.
 
Old 05-01-2020, 05:24 AM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by jefro View Post
There are web pages on how to do it but the automatic way is supposed to be disabled until about June. 20.04.1 version.
in short are you indicating that 20.04 is currently not considered stable? Not pointing fingers, or trying to start a fight, I am currently looking to move my workstation from Fedora 27/28 (forget how old the vs is) to Ubuntu/fork_of_Ubuntu and the 20.04 LTS is on my short list of distros. See the Silly Question thread in this forum.
 
Old 05-01-2020, 04:31 PM   #10
Davvy123
LQ Newbie
 
Registered: Apr 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello all,

Thank you for all your help. However I had made an initial error, and I believe that led to all the problems I've had.

The fact was, I did not have Ubuntu 18.04 LTS on my machine. I had LUBUNTU 18.04 LTS.

I don't know how much of that mistake contributed to the broken upgrade process. Actually I did eventually get every package updated and the system upgraded to Ubuntu 20.04, but because the new Ubuntu uses a different Desktop (LXQt vs LXDE in 18.04), the bottom Panel of my desktop did not show, and I just couldn't get it to make an appearance. I played around with my machine for a couple hours, realized I had Lubuntu instead of Ubuntu originally, but did not find any way to fix this lack of a Panel on my Desktop.

I then did some more searching online and came to the Lubuntu main website (https://lubuntu.me/focal-released/) where I found this note:

"Note, due to the extensive changes required for the shift in desktop environments, the Lubuntu team does not support upgrading from 18.04 or below to any greater release. Doing so will result in a broken system. If you are on 18.04 or below and would like to upgrade, please do a fresh install."

So then, bah humbug, I resigned myself to starting all over and doing a fresh install of Lubuntu 20.04 LTS.

I'm happy to report that after downloading the software, making a boot/live Lubuntu USB thumb drive, and going through the fresh installation, everything is working!

I'm now the proud owner of a brand new Lubuntu 20.04 LTS installation, and am excited about learning all of its features from scratch.

Thank you again all for your suggestions and help. I apologize for the initial error on my part. Hopefully this will inform your helping the next clueless Lubuntu user who comes here for help.

Good day to everyone, stay healthy and happy.

David
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with apt update after 20.04 LTS upgrade Davvy123 Linux - Newbie 1 04-30-2020 11:00 AM
Blue screen after apt-get update && apt-get upgrade && ... N0N3 Debian 5 08-02-2018 05:29 PM
[SOLVED] HELP: How do I restore all my files that got erased by "apt-get dselect-upgrade" after failed upgrade from 32 to 64 bit Ubuntu 14.04 LTS judoka Linux - Newbie 11 03-05-2016 05:03 PM
LXer: How to Update a Ubuntu LTS release to the next LTS Version (dist upgrade) LXer Syndicated Linux News 0 02-19-2015 08:00 AM
Can't boot after apt-update / apt-upgrade ozymandias Debian 2 09-06-2008 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration