Paketquellen für abgelaufene Ubuntu-Version wieder funktionsfähig gemacht

Problem
Es konnten keine neuen Programme mehr installiert werden.
sudo apt-get install <Paket>
E: Couldn’t find package <Paket>
Und weitere Fehler bei apt-get update

Lösung

# Zuerst die /etc/aptsources.list auf old-releases umgestellt, inspiriert von http://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-old-unsupported-release
# Allerdings hier auch den de.-Prefix (für den deutschen Server) entfernt:
sudo sed -i -r -e 's/(de\.)?(archive.ubuntu.com|security.ubuntu.com)/old-releases.ubuntu.com/g' /etc/apt/sources.list
# die -r-Option schaltet auf die „erweiterte“ (also normale) regexp-Syntax um.

# Dann die extra.-Sourcen auskommentiert, da ich keine bessere Idee hatte.

Dann noch eine Rücksetzung irgendwelcher apt-Caches vorgenommen, entsprechend http://wiki.ubuntuusers.de/Paketverwaltung/Problembehebung
sudo mv /var/lib/apt/lists/????????????* /var/lib/apt/lists_old_130625a/

und
sudo apt-get update



Am Ende sah die Datei so aus:


# deb cdrom:[Kubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ natty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ natty universe
deb-src http://old-releases.ubuntu.com/ubuntu/ natty universe
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu/ natty multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ natty-security universe
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security universe
deb http://old-releases.ubuntu.com/ubuntu/ natty-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu/ natty partner
# deb-src http://archive.canonical.com/ubuntu/ natty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# 2013-Juni-25, Sven: Rumgespielt, um die Extras zu finden, ohne Erfolg:
#deb http://extras.old-releases.ubuntu.com/ubuntu/ natty main
#deb-src http://extras.old-releases.ubuntu.com/ubuntu/ natty main
#deb http://old-releases.ubuntu.com/ubuntu/ natty extras
#deb-src http://old-releases.ubuntu.com/ubuntu/ natty main

Advertisements

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s