You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 17.10运行update-manager-text报AttributeError错误求助

Fixing 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.

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:

  1. 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
    
  2. 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:30:29