Lubuntu 17.10软件更新及仓库启用故障求助
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:
- Clear the existing file:
sudo > /etc/apt/sources.list
- 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

