Issues with Debian 12 sources.list file : RESOLVED

rgbellotti

Member
Joined
Nov 2, 2020
Messages
34
Reaction score
19
Credits
315
I recently upgraded from Bullseye to Bookworm via the terminal, and it went smoothly for the most part, however I'm getting an error when I try to 'sudo apt update' , and instructions have been somewhat unclear on how to fix the change from non-free to non-free-firmware. So far my sources.list file is
Code:
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

and the response I get from a 'sudo apt update' command is:
Code:
Ign:1 http://deb.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org/debian-security bookworm-security InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:1 http://deb.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org/debian-security bookworm-security InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:1 http://deb.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org/debian-security bookworm-security InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Err:1 http://deb.debian.org/debian bookworm InRelease
  Could not resolve 'deb.debian.org'
Err:2 http://security.debian.org/debian-security bookworm-security InRelease
  Could not resolve 'security.debian.org'
Err:3 http://deb.debian.org/debian bookworm-updates InRelease
  Could not resolve 'deb.debian.org'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Could not resolve 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Could not resolve 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Could not resolve 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
N: Repository 'Debian bookworm' changed its 'firmware component' value from 'non-free' to 'non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
 
Last edited:


Code:
Err:1 http://deb.debian.org/debian bookworm InRelease
  Could not resolve 'deb.debian.org'
Err:2 http://security.debian.org/debian-security bookworm-security InRelease
  Could not resolve 'security.debian.org'
Err:3 http://deb.debian.org/debian bookworm-updates InRelease
Your system can't resolve the dns of deb.debian.org, you probably won't be able to look up other webpages either.
 
Your system can't resolve the dns of deb.debian.org, you probably won't be able to look up other webpages either.
Yeah there was something wrong with my connection. I was just about to post an update

UPDATE: I disabled my VPN and tried updating through the discover app instead, the connection was really slow, but eventually it updated all the firmware and everything seems to be back to normal
 
Debian 12 was released on Saturday. I downloaded both the Netinstall and full DVD-1 installer from the official sources. I verified the checksums before using them. See this post:
https://www.linux.org/threads/debian-“trixie”-release-information.45471/post-195249

Yesterday Afternoon:
I performed two clean installations of Debian 12.0.0 yesterday afternoon local time (PDT), one from each of the two .iso files that I had verified on Saturday. Even though the DVD-1 .iso file had the full installation on it, I answered "Yes" to the question, "Use a network mirror?" on the DVD installation yesterday, so here are the contents of /etc/apt/sources.list from each of two installations after running apt update and apt upgrade:

Debian 12.0.0 Netinstall, 15 June 2023. This copy was made after running apt update and apt upgrade.
https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.0.0-amd64-netinst.iso

Code:
#deb cdrom:[Debian GNU/Linux 12.0.0 _Bookworm_ - Official amd64 NETINST with firmware 20230610-10:21]/ bookworm main non-free-firmware

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://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
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

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Debian 12.0.0 DVD-1 with "Yes" to "Use a network mirror?", 15 June 2023. This copy was made after running apt update and apt upgrade. I used an editor to comment out the "cdrom" line.
https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-12.0.0-amd64-DVD-1.iso

Code:
# deb cdrom:[Debian GNU/Linux 12.0.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230610-10:23]/ bookworm main non-free-firmware

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://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
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

NOTE: I noticed one minor difference between your version and the ones from my clean installs: Some entries have trailing slashes and others do not. I hope this helps.
 
rgbellotti wrote:
I recently upgraded from Bullseye to Bookworm via the terminal, and it went smoothly for the most part, however I'm getting an error when I try to 'sudo apt update' , and instructions have been somewhat unclear on how to fix the change from non-free to non-free-firmware. So far my sources.list file is

In the sources.list, non-free, and non-free-firmware are two separate repos. One doesn't replace the other, so you'd be wise to include both, if you wish to access non-free packages. The non-free refers to non-free software, and the non-free-firmware refers to firmware.
 
rgbellotti wrote:


In the sources.list, non-free, and non-free-firmware are two separate repos. One doesn't replace the other, so you'd be wise to include both, if you wish to access non-free packages. The non-free refers to non-free software, and the non-free-firmware refers to firmware.
Would you mind giving an example of this? I tried adding non-free to my sources.list and my update gave errors about duplicate entries
 
Would you mind giving an example of this? I tried adding non-free to my sources.list and my update gave errors about duplicate entries
Here is a fully functioning sources.list on two machines here:
Code:
deb http://ftp.au.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://ftp.au.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
If you want bookworm, replace trixie with bookworm in this code, and of course don't copy the au mirror that these machines here use but use your mirror of choice.

If apt complains about duplicates, it may be wise to check that there are no duplicates in the /etc/apt/sources.list.d/ directory.
 
Here is a fully functioning sources.list on two machines here:
Code:
deb http://ftp.au.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://ftp.au.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
If you want bookworm, replace trixie with bookworm in this code, and of course don't copy the au mirror that these machines here use but use your mirror of choice.

If apt complains about duplicates, it may be wise to check that there are no duplicates in the /etc/apt/sources.list.d/ directory.
Thank you now it's working
 

Staff online

Members online


Top