Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Package install problem

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
FellGleaming
Posts: 6
Joined: 2021-10-23 16:29

[SOLVED] Package install problem

#1 Post by FellGleaming »

In my earlier (solved) problem, I performed a core-only minimal Debian 11 install, as network services (and the Debian mirror) were unavailable at that time. After fixing the nic issue and configuring the network, I'm now trying to install some packages and convert this to a full-blown installation. I first did:

Code: Select all

apt install tasksel
And was told tasksel was already up-to-date. Running tasksel with no parameters gave no output whatsever. Running:

Code: Select all

tasksel ---new-install
Gave me an options screen, but the only package available to install was "standard system utilities", and already marked installed. I then tried to use apt, naming several packages by name. No matter what I tried, apt could not find any.

I then edited apt's "sources.list" file, to add back in two lines that the installer had commented out:

Code: Select all

# deb http://deb.debian.org/debian/ bullseye-updates main
# deb-src http://deb.debian.org/debian/ bullseye-updates main
I removed the comment marker from the above lines, then did an "apt-get update" to update apt's cache. This completed OK, but apt still can't find any packages. I then examined the cache file(s) for apt at /var/lib/apt/lists. The two relevant files seem to be:

Code: Select all

deb.debian.org_debian_dists_bullseye_updates_main_binary-amd64_Packages
security.debian.org_debian-security_dists_bullseye_security_main_binary-amd64_Packages
These are the only files ending in "Packages" and both were updated by the apt-get update cmd. The security file has a fair amount of stuff in it, but the main Package cache only shows packages relating to "Clamav".

Did I do something wrong in manually configuring apt? Are there more lines I need to add to sources.list?
Last edited by FellGleaming on 2021-10-27 03:11, edited 1 time in total.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2107
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 230 times

Re: Package install problem

#2 Post by FreewheelinFrank »

Have a look at the example sources list here:

https://wiki.debian.org/SourcesList#Exa ... urces.list

Do you have the actual package repository? Do you have the security repository? You may not need src (source code). You may want to add contrib and non-free.

Running

Code: Select all

# tasksel
should give you the GUI.

Image

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Package install problem

#3 Post by craigevil »

All of the Debian Bullseye repos:

Code: Select all

# Current Debian Stable Bullseye Repositories

# Debian 11 Bullseye https://www.debian.org/releases/bullseye/
 deb https://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye main contrib non-free

# Bullseye Security https://www.debian.org/releases/bullseye/
 deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
# deb-src https://deb.debian.org/debian-security bullseye-security main contrib non-free

# Bullseye Updates https://wiki.debian.org/DebianBullseye#FAQ
# https://wiki.debian.org/StableUpdates All packages from stable-updates will be included in point releases.
 deb https://deb.debian.org/debian bullseye-updates main contrib non-free
# deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free

# Bullseye Backports  https://backports.debian.org/
# Backports are _not_ enabled by default.
# Enable them by uncommenting the following line:
# deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free

# Bullseye Proposed Updates https://wiki.debian.org/StableProposedUpdates
# Stable-proposed-updates is an apt repository that contains the files that are being prepared for the next Debian/Stable point release.
# deb https://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free 
# deb-src https://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

FellGleaming
Posts: 6
Joined: 2021-10-23 16:29

Re: Package install problem

#4 Post by FellGleaming »

I had the src, security, and update repositories, but not the main itself. Adding that line solved the issue. Thanks for all the help.

Post Reply