Shipping Delay Notice - New Orders will ship on May 27, 2025


 
Home
Collections
Build Your Own
Catalog
How To Videos
Quick Reference
View Order Pad

About Us
Contact Us
FAQ
Linux News
Blog


 
 
Acceptance Mark
Amazon Pay





 

The LinuxCollections.com Blog

 

LinuxCollections.com's Blog

Notes on Debian's sources.list
written March 17, 2025 by Time Traveler
Category: BlogEntry Tags: Debian; apt; sources.list; package management;    #58
 

We had a question from a customer regarding what happens after you do a full install of Debian from the Debian USB Complete Collection.

If you don't do anything but step throught the install, your /etc/apt/sources.list looks something like this like this:

deb cdrom:[Debian GNU/Linux 12.9.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20250111-10:55]/ bookworm contrib main non-free-firmware

If you boot the installed OS from your hard drive, and try to update/install any packages, you'll get a warning about the missing disc. If wish to use the USB for updates and your source (repository) for your pacakges, you want to use the mountusb.sh script in the USB_Boot/boot/mountusb folder. Refer to the notes, details, and links below (section labeled "Running without internet, want to use packages on USB").

However, if you want to use the internet for updates going forward, you will need to change the soures.list file

For a good discussion, overview, and examples, you can see the Debian wiki:

Debian SourcesList (info on the /etc/apt/sources.list)

About 40% down the page, you'll find the actual text you want for updates of both Debian and the Debian source. Note you can skip the deb-src lines if you will not want any source code updates.

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

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

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


Example (as super user/root user at the command prompt):

cd /etc/apt
nano sources.list
-or-
kate sources.list
-or-
gedit sources.list
-or-
YourFavoriteTextEditor sources.list

Comment out the existing line, add a comment, and you get:

#Commented out, use internet sources below
#deb cdrom:[Debian GNU/Linux 12.9.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20250111-10:55]/ bookworm contrib main non-free-firmware

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

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

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


Save these change, return to command line, and then run apt update

Running without internet, want to use packages on USB


You can refer to videos and other blog entries that shows this/walk through steps:

How to access ALL Debian packages from LinuxCollections.com's Debian Complete Collection on USB

How do I learn about all the programs available in the Debian USB Complete Collection (or the Debian all discs option)?

View Current
View News & Commentary
View Support Items
View All

Blog Information

Notes on Debian's sources.list
March 17, 2025
Time Traveler
Category: BlogEntry
Tags: Debian; apt; sources.list; package management;
 

Some interesting tools
February 5, 2025
Time Traveler
Category: BlogEntry
Tags: Bash scripts; Reminder e-mails; screencasting;
 

Introduction to GUI Development
November 1, 2024
Time Traveler
Category: BlogEntry
Tags: Introduction to GUI Development; Development; Graphical User Interface;
 

Debian Updates, some customer feedback, news clip
September 9, 2024
Time Traveler
Category: BlogEntry
Tags: Debian 12.7.0; Debian 11.11.0; Customer feedback; news;
 

USB Collection Updates - Most Popular, Fedora, Ubuntu
May 1, 2024
Time Traveler
Category: BlogEntry
Tags: USB Collection Updates;Most Popular;Fedora;Ubuntu
 

Testimonials, Feedback, Input & Updates
March 27, 2024
Time Traveler
Category: BlogEntry
Tags: Testimonials; Feedback; Input; Updates;
 

Happy New Year 2024!
January 2, 2024
Time Traveler
Category: BlogEntry
Tags: USB; Notes; Price; Amazon Pay; What's happening;
 

First Steps - How To Boot from USB
October 30, 2023
Time Traveler
Category: BlogEntry
Tags: USB; Booting; Intro; How To;
 

A few notes and happenings…
September 12, 2023
Time Traveler
Category: BlogEntry
Tags: USB; Notes; What's happening;
 

Debian 12 Bookworm now available!
June 16, 2023
Time Traveler
Category: BlogEntry
Tags: New; Debian; Bookworm; Debian 12;
 

Updates & Info
May 11, 2023
Time Traveler
Category: BlogEntry
Tags: New; Debian; Ubuntu; Kubuntu; OpenMandriva
 

Random Notes, What's Happening…
February 8, 2023
Time Traveler
Category: BlogEntry
Tags: New; UEFI; Debian
 

Debian Complete Collection USB now has hardware .deb packages
January 5, 2023
TimeTraveler
Category: BlogEntry
Tags: Debian; Debian Complete Collection USB; Drivers; Hardware
 


Archives

Archive Year: 2022

Archive Year: 2021

Archive Year: 2020

 
 

LinuxCollections.com Logo
  • LinuxCollections.com News, Technical information, and other interesting items.
  • LinuxCollections.com is your premier source for Linux distros on CD/DVD/USB.

Send LinuxCollections.com a note via e-mail...