Xubuntu 17.04无法更新软件且无17.10升级选项求助
Hey NancyG, sorry to hear you're stuck with this frustrating update roadblock—let's break down how to get your system back on track. The most likely culprit here is that Xubuntu 17.04 reached its End of Life (EOL) a while back, so the default official repositories are no longer active. That's why your system can't fetch updates or see the 17.10 upgrade option, even with a working network.
Here's what to do step by step:
1. Switch to Old Releases Repositories
First, we need to update your software sources to point to Ubuntu's old-releases archive, since the original repos are now offline.
- Open a terminal (press
Ctrl+Alt+T) - Back up your current sources list first, just in case:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak - Edit the sources list file with a text editor (we'll use nano here):
sudo nano /etc/apt/sources.list - Replace every instance of
archive.ubuntu.comandsecurity.ubuntu.comwithold-releases.ubuntu.com. You can do this quickly in nano by pressingCtrl+\, typing the old URL, pressing Enter, then typing the new URL and pressing Enter again. - Save your changes by pressing
Ctrl+O, hit Enter to confirm, then exit nano withCtrl+X. - Now refresh your package list to make sure the new sources work:
If you see no errors here, you're good to move on.sudo apt update
2. Update Existing Packages
Before trying to upgrade to 17.10, make sure all your current packages are up to date with the new sources:
sudo apt upgrade
Follow the prompts to install any available updates.
3. Trigger the 17.10 Upgrade
Now let's get the upgrade option to show up:
- First, make sure the upgrade manager tool is installed:
sudo apt install update-manager-core - Run the release upgrade command:
do-release-upgrade - If the upgrade still doesn't show up, check your release upgrade settings to ensure it's set to look for normal releases (not just LTS versions):
Look for the line that sayssudo nano /etc/update-manager/release-upgradesPrompt=ltsand change it toPrompt=normal, then save and exit. Rundo-release-upgradeagain.
A quick heads-up: Xubuntu 17.10 is also an EOL release now, so after upgrading, you'll want to repeat a similar process to move to a supported version (like 18.04 LTS) eventually. But this should solve your immediate problem of getting updates and the 17.10 upgrade option working.
内容的提问来源于stack exchange,提问作者NancyG

