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

Lubuntu 17.10软件更新及仓库启用故障求助

Fixing Repository Issues After Upgrading Lubuntu 17.04 to 17.10 by Disabling All Repositories

It sounds like disabling all repositories mid-upgrade left your system with a broken or incomplete sources.list configuration—this is why both the「软件和更新」GUI and apt-get update are misbehaving. Let’s walk through fixing this step by step:

Step 1: Backup Your Current Source List

First, let’s save a copy of your existing (likely broken) sources file to avoid losing any customizations you might have had:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

Step 2: Recreate the Default Lubuntu 17.10 Sources List

We’ll wipe the current broken file and add the official Artful (17.10) repositories manually:

  1. Clear the existing file:
sudo > /etc/apt/sources.list
  1. Add the official repositories one by one:
echo "deb http://archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb http://archive.ubuntu.com/ubuntu/ artful-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb http://archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb http://security.ubuntu.com/ubuntu/ artful-security main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb http://archive.canonical.com/ubuntu/ artful partner" | sudo tee -a /etc/apt/sources.list

Note: If you’re in a region with slow access to official servers, replace archive.ubuntu.com with a local mirror (e.g., mirrors.tuna.tsinghua.edu.cn for users in China) to speed up downloads.

Step 3: Reset the Software & Updates Tool Configuration

To fix the GUI not responding when you try to enable repositories, reconfigure the update manager core:

sudo dpkg-reconfigure update-manager-core

Step 4: Update the Package Cache

Run the update command again to verify the fix:

sudo apt-get update

This should complete without errors now that your sources list is valid.

Step 5: Test the Software & Updates GUI

Open「软件和更新」again—you should now be able to check/uncheck repositories and save changes normally.

If you still run into issues, double-check the sources.list file permissions (it should be owned by root with 644 permissions):

sudo chown root:root /etc/apt/sources.list
sudo chmod 644 /etc/apt/sources.list

内容的提问来源于stack exchange,提问作者Sina Alvandi

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.19 10:22:53