How to fix the update error on Debian 12 Bookworm



After a fresh installation of Debian 12 Bookworm, I opened the terminal and typed the following command:


sudo apt-get update




An error comes out. The line that starts with deb cdrom inside /etc/apt/sources.list is the reason behind it.


To fix the error open the /etc/apt/sources.list in editing mode as root and replace its content with the following:





deb http://deb.debian.org/debian bookworm main non-free-firmware

deb-src http://deb.debian.org/debian bookworm main non-free-firmware


deb http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware

deb-src http://deb.debian.org/debian-security bookworm-security main non-free-firmware


deb http://deb.debian.org/debian bookworm-updates main non-free-firmware

deb-src http://deb.debian.org/debian bookworm-updates main non-free-firmware


Then save and type:


sudo apt-get update && sudo apt-get upgrade 


Final thoughts


The error is the result of misconfiguration of the repositories inside the /etc/apt/sources.list. An update of the file with the sources that are shared on the official website of the Debian operating system is the solution to the problem.


© 2023 Copyright by orthodoxpirate.blogspot.com
All Rights Reserved

No comments

Powered by Blogger.