Unable to locate package < some packages >

Help with issues regarding installation of Debian
Post Reply
Message
Author
externC
Posts: 3
Joined: 2021-10-12 13:12

Unable to locate package < some packages >

#1 Post by externC »

Hi everybody,

I'm trying to install packages on Debian from the insaller CD/DVD Iso file. Now, i will give information about what i done.

1. I created mountpoint to mount the ISO file.

Code: Select all

sudo mkdir -p /mnt/mount-iso
2. I mounted the ISO file

Code: Select all

sudo  mount /path/isopath /mnt/mount-iso
3. I edited the /etc/apt/sources.list file with this

Code: Select all

deb [trusted=yes] file:///mnt/mount-iso bullseye main contrib
4. I updated with sudo apt-get update

I installed some packages like git, gparted. So far everything is working fine. But when i try to install

Code: Select all

sudo apt-get install linux-image-rt-amd64
gives me:

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-image-rt-amd64

Here is my output of lsb_release -a command

Code: Select all

Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

I tried many things on the internet but it didn't work.
Last edited by externC on 2021-10-13 08:05, edited 1 time in total.

peter_irich
Posts: 1351
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Unable to locate package < some packages >

#2 Post by peter_irich »

Hence DVD-iso has not this package, moreover it is metapackage. All you need - is to tweak the Debian's reposotories
in /etc/apt and execute "apt-get update" and this package will be accessible.
Peter.

externC
Posts: 3
Joined: 2021-10-12 13:12

Re: Unable to locate package < some packages >

#3 Post by externC »

Hi Peter,
Thanks for your reply, but i tried what you said before posted. But nothing changed.

Here is the output of the apt-get update command in/etc/apt/

Code: Select all

Get:1 file:/mnt/mount-iso bullseye InRelease
Ign:1 file:/mnt/mount-iso bullseye InRelease
Get:2 file:/mnt/mount-iso bullseye Release [20.0 kB]
Get:2 file:/mnt/mount-iso bullseye Release [20.0 kB]
Get:3 file:/mnt/mount-iso bullseye Release.gpg
Ign:3 file:/mnt/mount-iso bullseye Release.gpg
Reading package lists... Done
Any advice ?
Last edited by externC on 2021-10-13 07:44, edited 1 time in total.

peter_irich
Posts: 1351
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Unable to locate package < some packages >

#4 Post by peter_irich »

t is not what I means. See this:
https://wiki.debian.org/SourcesList

externC
Posts: 3
Joined: 2021-10-12 13:12

Re: Unable to locate package < some packages >

#5 Post by externC »

Hi Peter

I checked the link, but I don't have any internet connection on the device. So I need to be able to make repos locally.
Here is my source.list

Code: Select all

# deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 DVD Binary-1 20211009-10:08]/ bullseye contrib main

deb [trusted=yes] file:///mnt/mount-iso bullseye main contrib

#deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 DVD Binary-1 20211009-10:08]/ bullseye contrib main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security bullseye-security main contrib
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/debian-security bullseye-security main contrib

# bullseye-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
# 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.debian.org/debian/ bullseye-updates main contrib
# deb-src http://deb.debian.org/debian/ bullseye-updates main contrib


canci
Posts: 1710
Joined: 2006-09-24 11:28

Re: Unable to locate package < some packages >

#6 Post by canci »

Debian on physical media like DVDs or BluRay store packages by popularity. So, the most popular software is on DVD 1, as well as the most essential stuff like the standard kernel, etc. The less popular a software is, the more likely it will be on one of the later DVDs.
I assume you only have the first DVD and that package just isn't on the first medium. Maybe you could contact a local vendor to sell you a full DVD set for Debian? Maybe in your case it would also be beneficial to buy a cheap BluRay device and just go with a set of Debian BluRays?
https://www.debian.org/CD/vendors/

I used to live without Internet around 15 years ago and would get full DVD sets for Debian. Back then, the first 4 or 5 DVDs would be enough to have most packages. Of course, software has become much bigger, so you might have to order more DVDs.

Alternatively, if you have temporary access to fast Internet and lots of hard disk storage, you could set up a local mirror of Debian packages:
https://blog.programster.org/set-up-a-l ... apt-mirror

Post Reply