[Bug 2008280] Re: regression: update-manager 1:23.04.1 no longer installs any updates (lunar)
Lucas Albuquerque Medeiros de Moura
2008280 at bugs.launchpad.net
Tue Apr 11 17:41:34 UTC 2023
To test on the ubuntu-advantage-tools package we have created a script
that calls the update API multiple times and checks if the results are
consistent. Since the problem that affected update-manager was that the
endpoint was interfering with the APT cache.
This is the script we have used to test it:
------------------------------------------
#!/bin/bash
set -e
series=$1
name=$series-test
function cleanup {
lxc delete $name --force
}
function on_err {
echo -e "Test Failed"
cleanup
exit 1
}
trap on_err ERR
function upgrade_to_latest {
echo -e "\n-------------------------------------------"
echo "** upgrading to 27.13.6"
echo "-------------------------------------------"
lxc exec $name -- apt-get update > /dev/null
lxc exec $name -- apt-get install ubuntu-advantage-tools -y
lxc exec $name -- apt-cache policy ubuntu-advantage-tools
echo "-------------------------------------------"
}
function upgrade_to_proposed {
echo -e "\n-------------------------------------------"
echo "** upgrading to 27.14.3 from proposed"
echo "-------------------------------------------"
lxc exec $name -- sh -c "echo \"deb http://archive.ubuntu.com/ubuntu $series-proposed main\" | tee /etc/apt/sources.list.d/proposed.list"
lxc exec $name -- apt-get update > /dev/null
lxc exec $name -- apt-get install ubuntu-advantage-tools -y
lxc exec $name -- apt-cache policy ubuntu-advantage-tools
echo "-------------------------------------------"
}
function setup_python_script {
echo -e "\n-------------------------------------------"
echo "** Setting up python3 environment"
echo "-------------------------------------------"
cat > python-apt-test.py << EOF
from uaclient.api.u.pro.packages.updates.v1 import updates
from uaclient.system import subp
result = updates()
print(result.summary)
result = updates()
print(result.summary)
result = updates()
print(result.summary)
EOF
lxc file push python-apt-test.py $name/tmp/
echo "-------------------------------------------"
}
lxc launch ubuntu-daily:$series $name
sleep 5
upgrade_to_latest
sleep 20
setup_python_script
echo -e "\n-------------------------------------------"
echo "** Verify apt cache is not consistent"
lxc exec $name -- apt-get update
lxc exec $name -- python3 /tmp/python-apt-test.py
echo "-------------------------------------------"
upgrade_to_proposed
echo -e "\n-------------------------------------------"
echo "** Verify apt cache is now consistent"
lxc exec $name -- python3 /tmp/python-apt-test.py
echo "-------------------------------------------"
cleanup
-------------------------------------------------
** Attachment added: "test-2008280.tar.xz"
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2008280/+attachment/5663042/+files/test-2008280.tar.xz
** Tags removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-xenial
** Tags added: verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-kinetic verification-done-xenial
--
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/2008280
Title:
regression: update-manager 1:23.04.1 no longer installs any updates
(lunar)
Status in ubuntu-advantage-tools package in Ubuntu:
Fix Released
Status in update-manager package in Ubuntu:
Invalid
Status in ubuntu-advantage-tools source package in Xenial:
Fix Committed
Status in ubuntu-advantage-tools source package in Bionic:
Fix Committed
Status in ubuntu-advantage-tools source package in Focal:
Fix Committed
Status in ubuntu-advantage-tools source package in Jammy:
Fix Committed
Status in ubuntu-advantage-tools source package in Kinetic:
Fix Committed
Bug description:
Hello,
On a fairly standard installation of lunar (ie no ubuntu pro linked
etc), the update-manager no longer appears able to install the updates
which are listed in the ui when clicking install.
symptoms:
- launch update-manager 1:23.04.1
- note that updates are available
- note that the ui shows 'unknown download size' in the bottom-left (this should be specified)
- note that the terminal output shows "required_download could not be calculated: E:Can't find a source to download version 'PKGVERSION' of 'PKGNAME:amd64'"
- click 'install now' button to install the listed updates
- note that update-manager doesn't actually install the updates (starting the update fails), the ui jumps to the generic 'installing snap updates' and then shows 'your system is up to date'
- note that if you launch update-manager again all the (same) updates are showing again
severity:
- this is a little concerning as the user can no longer install any updates using the update-manager ui - this includes updates for other packages and of course any updated package including a fix for this issue. (sudo apt update/upgrade in the terminal do of course still work)
- whilst this issue has been around for at least 5 days there don't appear to be any other reports of this issue. It doesn't seem likely to be something specific to my system though.
investigation:
- installing the debs of update-manager 1:22.10.6 (the previous version) resolves this issue
- it would appear that revision 2959 ( https://bazaar.launchpad.net/~ubuntu-core-dev/update-manager/main/revision/2959 ) is the first revision to introduce this issue
- this seems related to Ubuntu Pro / Advantage
Thanks for your attention
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2008280/+subscriptions
More information about the foundations-bugs
mailing list