[Bug 1766217] Re: software updater presents an empty panel for updating
Tommy Trussell
tommy.trussell at gmail.com
Thu Aug 2 19:11:02 UTC 2018
I have been seeing this.
TL;DR: workaround: delete /var/lib/apt/extended_states
INVESTIGATION
I tried reinstalling the update-manager
$ sudo apt install --reinstall update-manager
but that didn't help.
SO I moved the apt directory and created a blank one
$ sudo mv /var/lib/apt /var/lib/apt.orig
$ sudo mkdir /var/lib/apt
then I updated apt
$ sudo apt update
Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]
...
Get:119 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Get:120 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
Fetched 55.2 MB in 1min 13s (748 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
Building dependency tree... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
$
Now despite the complaint above ("AppStream cache update completed, but some metadata was ignored due to errors.") software-updater works; it lists the upgradeable packages.
The only subdirectory that got recreated under /var/lib/apt is /var/lib/apt/lists (and its subdirectory)
SO I blew away the directory and copied everything except the lists directory and updated again
$ sudo rm -R /var/lib/apt
$ sudo cp -R /var/lib/apt.orig /var/lib/apt
$ sudo rm -R /var/lib/apt/lists/
$ sudo apt update
Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
...
Get:120 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
Fetched 55.2 MB in 1min 13s (747 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
Building dependency tree
Reading state information... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
$
I got the same error, HOWEVER Software Updater is blank again.
I tried deleting the /var/lib/apt/periodic directory and updating
$ sudo rm -R /var/lib/apt/periodic/
$ sudo mkdir /var/lib/apt/periodic
$ sudo apt update
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:5 http://screenshots.getdeb.net xenial-getdeb InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ ls /var/lib/apt/periodic
update-success-stamp
$
Now I no longer see a metadata error from apt, but software-updater is
still blank.
SO I delete the extended_states file
$ sudo rm /var/lib/apt/extended_states
$ sudo apt update
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease
Hit:7 http://screenshots.getdeb.net xenial-getdeb InRelease
Reading package lists... Done
Building dependency tree... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
$
NOW software-updater is showing the upgradeable files
SO just to be sure, I copied the original stuff back and deleted JUST the extended_states file
$ sudo rm -R /var/lib/apt/
$ sudo cp -R /var/lib/apt.orig/ /var/lib/apt/
$ sudo rm /var/lib/apt/extended_states
$
AND software_updater is now showing the upgradeable packages. There's the workaround. Are there consequences of having no extended_states file?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1766217
Title:
software updater presents an empty panel for updating
Status in update-manager package in Ubuntu:
Confirmed
Bug description:
1. software updater alerts me to a small update (<1Mb)
2. click <install>
3. software updater "does its thing"
4. software update presents an empty panel and asks me to install or be reminded later
5. click <install>
repeat
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: update-manager 1:16.04.12
ProcVersionSignature: Ubuntu 4.13.0-38.43~16.04.1-generic 4.13.16
Uname: Linux 4.13.0-38-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.16
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Apr 23 20:55:24 2018
ExecutablePath: /usr/bin/update-manager
GsettingsChanges:
b'com.ubuntu.update-manager' b'show-details' b'true'
b'com.ubuntu.update-manager' b'window-height' b'592'
b'com.ubuntu.update-manager' b'first-run' b'false'
b'com.ubuntu.update-manager' b'window-width' b'484'
b'com.ubuntu.update-manager' b'launch-time' b'int64 1524479931'
InstallationDate: Installed on 2017-12-13 (131 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
InterpreterPath: /usr/bin/python3.5
PackageArchitecture: all
SourcePackage: update-manager
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1766217/+subscriptions
More information about the foundations-bugs
mailing list