The officially official Devuan Forum!

You are not logged in.

#1 2021-02-16 13:41:45

MysticLord
Member
Registered: 2019-02-23
Posts: 27  

apt thinks its only sources are the installation CD/DVD

I've been on Windows the past year, just got back into Linux. Everything's going smooth except here's what apt has to say.

~$ sudo apt update
[sudo] password for MysticLord: 
Ign:1 cdrom://[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526] beowulf InRelease
Err:2 cdrom://[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526] beowulf Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Reading package lists... Done
E: The repository 'cdrom://[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526] beowulf Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Thoughts? What should I do to give you more info?

I have a working internet connection for my laptop.

Last edited by MysticLord (2021-02-16 13:46:33)

Offline

#2 2021-02-16 13:55:50

rolfie
Member
Registered: 2017-11-25
Posts: 1,173  

Re: apt thinks its only sources are the installation CD/DVD

Well, you need to polish your sources.list. Have a read: https://www.devuan.org/os/packages

rolfie

Online

#3 2021-02-16 13:56:38

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: apt thinks its only sources are the installation CD/DVD

what is the output of below command? The cd-rom sources should be commented out.

cat /etc/apt/sources.list

here is my sources/list

# 

# deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - netinstall 20200526]/ beowulf contrib main non-free

#deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - netinstall 20200526]/ beowulf contrib main non-free

deb http://deb.devuan.org/merged beowulf main non-free contrib
# deb-src http://deb.devuan.org/merged beowulf main non-free contrib

deb http://deb.devuan.org/merged beowulf-security main contrib non-free
# deb-src http://deb.devuan.org/merged beowulf-security main contrib non-free

# beowulf-updates, previously known as 'volatile'
deb http://deb.devuan.org/merged beowulf-updates main contrib non-free
# deb-src http://deb.devuan.org/merged beowulf-updates main contrib non-free

deb http://deb.devuan.org/merged beowulf-backports main contrib non-free

# 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.

Offline

#4 2021-02-16 18:28:47

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

Re: apt thinks its only sources are the installation CD/DVD

Any other sources?

grep -v '^#\|^$' /etc/apt/sources.list{,.d/*}

Brianna Ghey — Rest In Power

Offline

#5 2021-02-17 08:33:39

MysticLord
Member
Registered: 2019-02-23
Posts: 27  

Re: apt thinks its only sources are the installation CD/DVD

~$ cat /etc/apt/sources.list
# 

# deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526]/ beowulf contrib main non-free

deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526]/ beowulf contrib main non-free

# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.devuan.org/merged beowulf-security main
# deb-src http://deb.devuan.org/merged beowulf-security main

# beowulf-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.devuan.org/merged beowulf-updates main
# deb-src http://deb.devuan.org/merged beowulf-updates main
~$ grep -v '^#\|^$' /etc/apt/sources.list{,.d/*}
/etc/apt/sources.list:deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526]/ beowulf contrib main non-free
grep: /etc/apt/sources.list.d/*: No such file or directory
rolfie wrote:

Well, you need to polish your sources.list. Have a read: https://www.devuan.org/os/packages

rolfie

Okay then, I uncommented the non-CD/DVD sources and commented the CD-DVD ones. Apt seems to be updating so this will be my last post for the day while everything updates and I fiddle with software.

cat /etc/apt/sources.list
# 

# deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526]/ beowulf contrib main non-free

# deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526]/ beowulf contrib main non-free

# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.devuan.org/merged beowulf-security main
deb-src http://deb.devuan.org/merged beowulf-security main

# beowulf-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.devuan.org/merged beowulf-updates main
deb-src http://deb.devuan.org/merged beowulf-updates main

1. Got any other sources I should use (mirrors, for instance), and if so can you tell me why (or point me towards something that will tell me what and why)?

2. Got anything to read RE mirrors and how that helps me or Devuan in general?

3. What about more esoteric stuff, like automatically: file-sharing sources, verifying their authenticity, and possibly seeding them for other users? If I did it, would other people use it? What additional safety precautions would I need to take on my end to ensure everyone's safety and security?

4. If I wanted to automatically install and update say Pale Moon, Brave, or something else, would they likely have equivalents to the links above that I can add to my sources.list?

5. What about automatically installing, detecting stable updates/releases, and downloading/compiling/installing other stuff that doesn't provide debs?

edit

During the upgrade (which was blessedly fast and simple compared to Windows 10), I noticed this:

/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.19.0-9-amd64
W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3

A search indicates it could prevent network cards from working after reboot. If that's an issue, the same says that I need to add non-free to my sources.
https://thespecter.net/blog/technology/ … odule-tg3/

Going back to the link rolfie posted:

Note that all software shipped with Devuan in the main component is free software. But if needed, non-free software is also available. Just add the non-free and contrib components to the appropriate line(s) in /etc/apt/sources.list like this:

deb http://deb.devuan.org/merged beowulf main non-free contrib

Is there any way to specify that I only want certain software from a specific source? I do a lot of emulation and rom-hacking stuff, and the authors of programs for such love to require the latest stable versions for compilation.

edit

How would I add package sources from debian while restricting it to the subsets that don't require things that are forbidden in devuan?

Where can I see the list of packages that are forbidden?

Last edited by MysticLord (2021-02-17 10:29:41)

Offline

#6 2021-02-17 11:39:30

rolfie
Member
Registered: 2017-11-25
Posts: 1,173  

Re: apt thinks its only sources are the installation CD/DVD

MysticLord wrote:
cat /etc/apt/sources.list
# 

# deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526]/ beowulf contrib main non-free

# deb cdrom:[Devuan GNU/Linux 3.0 (beowulf) amd64 - desktop 20200526]/ beowulf contrib main non-free

# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.devuan.org/merged beowulf-security main
deb-src http://deb.devuan.org/merged beowulf-security main

# beowulf-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.devuan.org/merged beowulf-updates main
deb-src http://deb.devuan.org/merged beowulf-updates main

1. Got any other sources I should use (mirrors, for instance), and if so can you tell me why (or point me towards something that will tell me what and why)?

The main repo is missing.

http://deb.devuan.org/merged beowulf main contrib non-free 

Consider if you need to complie packages. If not, disable the deb-src lines.

MysticLord wrote:

2. Got anything to read RE mirrors and how that helps me or Devuan in general?

Scan through https://www.devuan.org/. There is a lot of useful information.

MysticLord wrote:

During the upgrade (which was blessedly fast and simple compared to Windows 10), I noticed this:

/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.19.0-9-amd64
W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3

A search indicates it could prevent network cards from working after reboot. If that's an issue, the same says that I need to add non-free to my sources.
https://thespecter.net/blog/technology/ … odule-tg3/

Going back to the link rolfie posted:

Note that all software shipped with Devuan in the main component is free software. But if needed, non-free software is also available. Just add the non-free and contrib components to the appropriate line(s) in /etc/apt/sources.list like this:

deb http://deb.devuan.org/merged beowulf main non-free contrib

Is there any way to specify that I only want certain software from a specific source? I do a lot of emulation and rom-hacking stuff, and the authors of programs for such love to require the latest stable versions for compilation.

Enabling contrib non-free does not mean everything in there is installed automatically. You have to install packages from non-free explicitely to have them available. Once they are installed they are maintained automatically. Example:

apt install firmware-linux-nonfree

You may also install non-free packages, and then disable the non-free section in the sources.list again. Your choice. But then the stuff is no more updated.

MysticLord wrote:

How would I add package sources from debian while restricting it to the subsets that don't require things that are forbidden in devuan?

This is not recommended at all.

MysticLord wrote:

Where can I see the list of packages that are forbidden?

Look for "Banned packages" on the Devuan web page.

rolfie

Online

#7 2021-02-17 17:09:09

MysticLord
Member
Registered: 2019-02-23
Posts: 27  

Re: apt thinks its only sources are the installation CD/DVD

rolfie wrote:

The main repo is missing.

http://deb.devuan.org/merged beowulf main contrib non-free 

Consider if you need to complie packages. If not, disable the deb-src lines.

What does non-free mean in this context? Licenses other than GPL, MIT, and their kin?

I need to compile emulators and hex editors, it won't hurt to keep the source lines in there.

rolfie wrote:

Enabling contrib non-free does not mean everything in there is installed automatically. You have to install packages from non-free explicitely to have them available. Once they are installed they are maintained automatically. Example:

apt install firmware-linux-nonfree

You may also install non-free packages, and then disable the non-free section in the sources.list again. Your choice. But then the stuff is no more updated.

Thanks for clarifying, I don't know how I missed this.

Offline

#8 2021-02-17 21:07:41

rolfie
Member
Registered: 2017-11-25
Posts: 1,173  

Re: apt thinks its only sources are the installation CD/DVD

MysticLord wrote:
rolfie wrote:

The main repo is missing.

http://deb.devuan.org/merged beowulf main contrib non-free 

Consider if you need to complie packages. If not, disable the deb-src lines.

What does non-free mean in this context? Licenses other than GPL, MIT, and their kin?

Have a read: https://www.debian.org/intro/free.en.html

non-free means code that is propriatry. Unfortunately you will need non-free stuff to get your tg3 working.

Same with me and my AMD GPUs.

rolfie

Online

Board footer