The officially official Devuan Forum!

You are not logged in.

#1 2023-01-25 01:19:14

tux
Member
Registered: 2022-10-01
Posts: 45  

cdrom to source list

what is correct commenting for Base OS installing updates offline with mounted live iso cd/dvd

 # Package repositories
deb file:/mnt/devuan_chimaera_4.0.2_amd64_desktop-live.iso chimaera main
deb cdeb /mnt/devuan_chimaera_4.0.2_amd64_desktop-live.iso
deb cdrom:[devuan_chimaera_4.0.2_amd64_desktop-live.iso}/ cimaera contrib main
#deb  http://deb.devuan.org/merged chimaera main 
#deb http://deb.devuan.org/merged chimaera-updates main
#deb http://deb.devuan.org/merged chimaera-security main
 # Source repository
deb-src cdeb /mnt/devuan_chimaera_4.0.2_amd64_desktop-live.iso chimaera main
deb cdeb file:/mnt/mount-iso chimaera main
deb file:/mnt/mount-iso chimaera main 

Last edited by tux (2023-01-25 01:22:18)

Offline

#2 2023-01-25 02:00:45

tux
Member
Registered: 2022-10-01
Posts: 45  

Re: cdrom to source list

 # Package repositories
deb [trusted=yes] file:/mnt/devuan_chimaera_4.0.2_amd64_desktop-live.iso chimaera main
deb [trusted=yes] cdeb file:/mnt/mount-iso chimaera main
deb [trusted=yes] cdeb file:/devuan_chimaera_4.0.2_amd64_desktop-live.iso chimaera main
deb [trusted=yes] cdrom file:/devuan_chimaera_4.0.2_amd64_desktop-live.iso chimaera main

Last edited by tux (2023-01-25 02:01:26)

Offline

#3 2023-01-25 07:05:18

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: cdrom to source list

Mount the ISO image under a directory (eg, /cdrom) and use

deb file:/cdrom chimaera main

Alternatively run

# apt-cdrom add

Then insert the CD/DVD.


Brianna Ghey — Rest In Power

Offline

#4 2023-01-25 16:13:47

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: cdrom to source list

Apt looks for the cdrom at /media/cdrom, so for the non-live ISO I did:

mount -o loop,ro -t iso9660 /mnt/devuan_chimaera_4.0.0_amd64_desktop.iso /media/cdrom

(If necessary, do mount /dev/sdX1 /mnt or equivalent first, or copy the ISO to the local disk and update the path.)

Then, given an /etc/apt/sources.list which already contained...

deb cdrom:[Devuan GNU/Linux 4.0 chimaera amd64 - desktop 20211012]/ chimaera contrib main nonfree

...I removed contrib and nonfree, and needed to set allow-insecure=yes like so:

deb [ allow-insecure=yes ] cdrom:[Devuan GNU/Linux 4.0 chimaera amd64 - desktop 20211012]/ chimaera main

(In addition to the ISO filename, I assume the live ISO has a different cdrom label also.)


3.1415P265E589T932E846R64338

Offline

#5 2023-01-25 21:23:31

tux
Member
Registered: 2022-10-01
Posts: 45  

Re: cdrom to source list

mount -o loop,ro -t iso9660 /mnt/devuan_chimaera_4.0.0_amd64_desktop.iso /media/cdrom

deb file:/cdrom chimaera main
added to config file.

sudo aptupdate
Error output.

W: the resository file:cdrom chimaera does not have a release file
E: failed to fetch file:cdrom/distros/chimaera/main/source/Sources File not found - /cd/dist
/chimaera/main/sources/Sources (2: No such file or directory)
W: Some indect files failed to download. they have been ignored, or old ones used instead

no lines in live or base os sources.list have deb cdrom lines commented or uncommented.

Last edited by tux (2023-01-25 21:24:23)

Offline

#6 2023-01-25 22:08:46

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: cdrom to source list

tux wrote:

no lines in live or base os sources.list have deb cdrom lines commented or uncommented.

Mine did.

Maybe it got added by apt-cdrom add - I don't think I ran that, but can't say for certain.


3.1415P265E589T932E846R64338

Offline

#7 2023-01-26 15:58:20

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: cdrom to source list

tux wrote:

mount -o loop,ro -t iso9660 /mnt/devuan_chimaera_4.0.0_amd64_desktop.iso /media/cdrom

deb file:/cdrom chimaera main
added to config file.

If you've mounted the ISO under /media/cdrom then you should put the same directory in sources.list. Surely that's obvious, even with a language barrier?

EDIT: and why are you combining the differing advice from two respondents? That's even weirder.

Last edited by Head_on_a_Stick (2023-01-26 15:59:22)


Brianna Ghey — Rest In Power

Offline

Board footer