HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
Update Your Debian Guest
- E.g. username: cbkadal
- Port 6022 (check your port!)
ssh -p 6022 cbkadal@localhost
(RESULT)
mylocalhost:~$ ssh -p 6022 cbkadal@localhost
cbkadal@localhost's password:
Linux cbkadal 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jan 7 07:05:44 2022 from 10.0.2.2
cbkadal@cbkadal:~$
- substitute user “root”
SuperUser (root) account is needed for updating Debian Packages.
su -
(RESULT)
cbkadal@cbkadal:~$ su -
Password:
root@cbkadal:~#
- Check Your /etc/apt/sources.list file
cat /etc/apt/sources.list
- Compare with this following:
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb https://security.debian.org/ bullseye-security main contrib non-free
deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
- Update DEB Package Database
date;
time apt-get update;
(RESULT)
root@cbkadal:~# date;
Fri 07 Jan 2022 07:23:10 AM WIB
root@cbkadal:~# time apt-get update;
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Reading package lists... Done
real 0m1.210s
user 0m0.785s
sys 0m0.282s
root@cbkadal:~#
- Upgrade DEB packages
date;
time apt-get upgrade -y;
(RESULT)
root@cbkadal:~# date;
Fri 07 Jan 2022 07:29:15 AM WIB
root@cbkadal:~# time apt-get upgrade -y;
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
real 0m0.349s
user 0m0.333s
sys 0m0.017s
root@cbkadal:~#
- Autoclean and Autoremove
date;
time apt-get autoremove -y;
time apt-get autoclean -y;
(RESULT)
root@cbkadal:~# date;
Fri 07 Jan 2022 07:30:29 AM WIB
root@cbkadal:~# time apt-get autoremove -y;
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
real 0m0.304s
user 0m0.279s
sys 0m0.025s
root@cbkadal:~# time apt-get autoclean -y;
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
real 0m0.148s
user 0m0.120s
sys 0m0.005s
root@cbkadal:~#
ALL IN ONE
apt-get update;apt-get upgrade -y;apt-get autoremove -y; apt-get autoclean -y;
- You might want to reboot your system.
reboot
root@cbkadal:~# reboot
root@cbkadal:~# Connection to localhost closed by remote host.
Connection to localhost closed.
mylocalhost:~$