Debian wheezy is no longer supported, so I have to upgrade to jessie release …

Here is my current Debian release :

wou@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.11 (wheezy)
Release:        7.11
Codename:       wheezy

Logon as root :

wou@debian:~$ su -
Password:

Replace “wheezy” in “apt” list files :

root@debian:~# grep -R wheezy /etc/apt 
/etc/apt/sources.list:# deb cdrom:[Debian GNU/Linux 7.9.0 _Wheezy_ – Official amd64 NETINST Binary-1 20150905-14:35]/ wheezy main 
/etc/apt/sources.list:#deb cdrom:[Debian GNU/Linux 7.9.0 _Wheezy_ – Official amd64 NETINST Binary-1 20150905-14:35]/ wheezy main 
/etc/apt/sources.list:deb http://mirror.switch.ch/ftp/mirror/debian/ wheezy main 
/etc/apt/sources.list:deb-src http://mirror.switch.ch/ftp/mirror/debian/ wheezy main 
/etc/apt/sources.list:deb http://security.debian.org/ wheezy/updates main /etc/apt/sources.list:deb-src http://security.debian.org/ wheezy/updates main 
/etc/apt/sources.list:# wheezy-updates, previously known as ‘volatile’ /etc/apt/sources.list:deb http://mirror.switch.ch/ftp/mirror/debian/ wheezy-updates main 
/etc/apt/sources.list:deb-src http://mirror.switch.ch/ftp/mirror/debian/ wheezy-updates main Binary file 
/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg matches

By “jessie” :

root@debian:~# find /etc/apt -name "*.list" -exec sed -i "s/wheezy/jessie/g" {} \;
root@debian:~# find /etc/apt -name "*.list" -exec sed -i "s/Wheezy/Jessie/g" {} \;
root@debian:~# find /etc/apt -name "*.list" -exec sed -i "s/7\.9\.0/8\.2\.0/g" {} \;

Launch an update :

root@debian:~# apt-get update

Then, launch an upgrade :

root@debian:~# apt-get -y upgrade

And upgrade all packages :

root@debian:~# apt-get -y dist-upgrade

Reboot :

root@debian:~# shutdown -r 0

It’s done :

root@debian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.5 (jessie)
Release:        8.5
Codename:       jessie

 

PDF24    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *


*