How do I upgrade Debian stable Linux (Lenny) server to Squeeze for the testing purpose using command line options?
You need to edit the file called /etc/apt/sources.list, enter:
# vi /etc/apt/sources.list
Find word lenny and replace with squeeze. A quick find and replace can be used as follows:
:%s/lenny/squeez/g
See UNIX / Linux: vi / vim perform search and replace operation for more information.
At the end it should look as follows:
deb http://ftp.us.debian.org/debian/ squeeze main deb-src http://ftp.us.debian.org/debian/ squeeze main deb http://security.debian.org/ squeeze/updates main deb-src http://security.debian.org/ squeeze/updates main deb http://volatile.debian.org/debian-volatile squeeze/volatile main deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main
Save and close the file.
Debian Linux: Update From Stable/Lenny to Ttesting/Squeeze
Type the following command:
# apt-get update
# apt-get install apt dpkg aptitude
# apt-get dist-upgrade
OR
# aptitude update
# aptitude install apt dpkg aptitude
# aptitude full-upgrade
Finally, reboot the server:
# reboot
After reboot make sure all required ports are open and all services are running:
# lsb_release -a
# netstat -tulpn
# tail -f /var/log/messages
# tail -f /path/to/log/file
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 3 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
There is a syntax error in string: “:%s/lenny/squeez/g”
P.S. This comment must be deleted after correction. ;)
this:
deb http://volatile.debian.org/debian-volatile squeeze/volatile main
does not work any more
Read here for more info:
http://lists.debian.org/debian-volatile-announce/2011/msg00000.html
but you want to know this.
deb http://ftp.debian.org/debian squeeze-updates main
Really good article describing the importance of always ensuring a complete backup of the system. We will update our servers from Lenny to Squeeze
soon.