Ubuntu 17.10运行update-manager-text报AttributeError错误求助
AttributeError: 'UpdateList' object has no attribute 'pkgs' in Ubuntu 17.10's update-manager-text Hey there, let's work through this frustrating error with update-manager-text on Ubuntu 17.10 'artful'. This specific AttributeError stems from outdated or broken components in the older update-manager package, and here are practical steps to resolve it:
1. Repair Corrupted Packages & Dependencies
First, rule out basic dependency issues that might be causing the object attribute failure:
sudo apt update --fix-missing sudo apt install --fix-broken
This command set refreshes your package lists and fixes any broken or missing dependencies that could be disrupting update-manager-text's functionality.
2. Reinstall Update Manager Components
If the error persists, the update-manager package itself might have corrupted files. Completely purge and reinstall it:
sudo apt purge update-manager update-manager-core sudo apt autoremove sudo apt install update-manager update-manager-core
Using purge ensures all configuration files are removed, so you're starting with a clean installation of the package and its core dependencies.
3. Fall Back to Native apt Commands
Ubuntu 17.10 is no longer supported, so update-manager-text might have unpatched bugs. You can bypass it entirely by using the reliable native apt commands to update your system:
sudo apt update sudo apt upgrade sudo apt dist-upgrade
These commands handle all package updates just like update-manager-text would, without the broken Python attribute issue.
4. Upgrade to a Supported Ubuntu Version (Recommended)
Ubuntu 17.10 reached end-of-life in July 2018, meaning no more security updates or package fixes. The most permanent solution is to upgrade to a supported LTS (Long-Term Support) release like 18.04 or 20.04:
- First, update your sources list to point to Ubuntu's old releases repository (since 17.10's original repos are no longer active):
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list - Run the release upgrade tool:
sudo do-release-upgrade
Follow the on-screen prompts to complete the upgrade to a supported version, which will eliminate this and many other outdated-software-related issues.
内容的提问来源于stack exchange,提问作者Vassilis Papanikolaou

