APT is not finding some common packages

Kernels & Hardware, configuring network, installing services

APT is not finding some common packages

Postby mdeflima » 2020-04-09 21:09

Dear Debian Users,

I am trying to install (via apt install) some common packages, like grace, openvpn, and a sort of must-to-have packages. However, when I try to install via apt install, the packages has no candidate (even they not appear in an apt-cache search), although, yes, they are in the official stable distribution of buster. Detail: This does not occur with all packages (some packages I can find and install straight forward). What is wrong in my system?

My distribution is Debian 10.2


Here is the contend my /etc/apt/sources.list file:

# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main
#deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main
deb http://deb.debian.org/debian/ buster main non-free contrib
deb-src http://deb.debian.org/debian/ buster main non-free contrib
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free
# buster-backports, previously on backports.debian.org
deb http://deb.debian.org/debian/ buster-backports main contrib non-free
deb-src http://deb.debian.org/debian/ buster-backports main contrib non-free

Thanks in advance,

Marcelo.
Marcelo Lima (Computational Chemist)
Debian GNU/Linux 10.2 (buster) Kernel: Linux 5.4.0-0.bpo.4-amd64
Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz x86_64 4Gb RAM
NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
User avatar
mdeflima
 
Posts: 7
Joined: 2020-04-09 20:54

Re: APT is not finding some common packages

Postby cooleo » 2020-04-09 21:18

"yes, they are in the official stable distribution of buster."
----If so, I believe there is something wrong with your command.
cooleo
 
Posts: 28
Joined: 2020-04-07 05:28

Re: APT is not finding some common packages

Postby milomak » 2020-04-09 21:23

what's your output for apt update?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2072
Joined: 2009-06-09 22:20

Re: APT is not finding some common packages

Postby mdeflima » 2020-04-11 21:04

Everything runs "apparently" perfectly, apt update, apt dist-upgrade, etc.

However only a few packages are invisible for my apt install / apt-cache search.
For example, today I try to install gnote, my apt-cache return nothing, and apt install nothing. So I went to debian package (buster) website made de download and installed via dpkg -i

After I've installed (via dpkg) when I ask again apt install gnote, appears the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
gnote is already the newest version (3.30.0-2).
Marcelo Lima (Computational Chemist)
Debian GNU/Linux 10.2 (buster) Kernel: Linux 5.4.0-0.bpo.4-amd64
Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz x86_64 4Gb RAM
NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
User avatar
mdeflima
 
Posts: 7
Joined: 2020-04-09 20:54

Re: APT is not finding some common packages

Postby stevepusser » 2020-04-12 00:05

Everything runs "apparently" perfectly, apt update, apt dist-upgrade, etc.


Sometimes the problem is subtle--can you copypaste the output in code tags here, please?
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12124
Joined: 2009-10-06 05:53

Re: APT is not finding some common packages

Postby mdeflima » 2020-04-12 13:34

Dear folks, first of all thanks for helping, here there is an example of trying to install the package: education-tasks (2.10.47) via apt:
Code: Select all
root@lqboa:/home/mflima# apt-cache search education-tasks
root@lqboa:/home/mflima# apt install education-tasks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package education-tasks is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'education-tasks' has no installation candidate
root@lqboa:/home/mflima#

However education-tasks (2.10.47) makes part of buster stable version. As you see, apt-cache returns nothing and apt install can't find the package.

It is hard to find an example to show you this abnormality for 2 reasons:
1) I never know which package is not being visible by my apt (some it sees, some not)
2) Once I've have installed by downloading "by hand" and then using dpkg -i, my apt sees it as it was installed by it.

Oh I was forgetting here is my apt update output:

Code: Select all
root@lqboa:/home/mflima# apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://deb.debian.org/debian buster-backports InRelease
Hit:4 http://security.debian.org/debian-security buster/updates InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@lqboa:/home/mflima#
Marcelo Lima (Computational Chemist)
Debian GNU/Linux 10.2 (buster) Kernel: Linux 5.4.0-0.bpo.4-amd64
Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz x86_64 4Gb RAM
NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
User avatar
mdeflima
 
Posts: 7
Joined: 2020-04-09 20:54

Re: APT is not finding some common packages

Postby Head_on_a_Stick » 2020-04-13 10:31

What does this say
Code: Select all
apt policy education-tasks
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12744
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: APT is not finding some common packages

Postby mdeflima » 2020-04-13 14:42

Head_on_a_Stick wrote:What does this say
Code: Select all
apt policy education-tasks


Thanks for trying helping and here it goes:
Code: Select all
root@lqboa:/home/mflima# apt policy education-tasks
education-tasks:
  Installed: (none)
  Candidate: (none)
  Version table:
root@lqboa:/home/mflima#
Marcelo Lima (Computational Chemist)
Debian GNU/Linux 10.2 (buster) Kernel: Linux 5.4.0-0.bpo.4-amd64
Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz x86_64 4Gb RAM
NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
User avatar
mdeflima
 
Posts: 7
Joined: 2020-04-09 20:54

Re: APT is not finding some common packages

Postby Head_on_a_Stick » 2020-04-13 15:06

Do you have any files in /var/lib/apt/lists/? Is /var/cache/apt/pkgcache.bin present?

Check the permissions for those directories:
Code: Select all
ls -ld /var/{lib/apt/lists,cache/apt}
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12744
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: APT is not finding some common packages

Postby mdeflima » 2020-04-13 18:31

Head_on_a_Stick wrote:Do you have any files in /var/lib/apt/lists/? Is /var/cache/apt/pkgcache.bin present?

Yes, a lot of files, as you can see:

Code: Select all
root@lqboa:/home/mflima# cd /var/lib/apt/lists/
root@lqboa:/var/lib/apt/lists# ls
total 25M
-rw-r--r-- 1 root root 170K Jun 16  2019 deb.debian.org_debian_dists_buster_contrib_source_Sources
-rw-r--r-- 1 root root  38K Jun 24  2019 deb.debian.org_debian_dists_buster_non-free_dep11_icons-64x64.tar.gz
-rw-r--r-- 1 root root 3.5K Jun 24  2019 deb.debian.org_debian_dists_buster_non-free_dep11_icons-48x48.tar.gz
-rw-r--r-- 1 root root  11K Jun 24  2019 deb.debian.org_debian_dists_buster_non-free_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root 179K Jun 27  2019 deb.debian.org_debian_dists_buster_contrib_i18n_Translation-en
-rw-r--r-- 1 root root 225K Jun 27  2019 deb.debian.org_debian_dists_buster_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root 108K Jun 27  2019 deb.debian.org_debian_dists_buster_contrib_dep11_icons-64x64.tar.gz
-rw-r--r-- 1 root root  56K Jun 27  2019 deb.debian.org_debian_dists_buster_contrib_dep11_icons-48x48.tar.gz
-rw-r--r-- 1 root root  13K Jun 27  2019 deb.debian.org_debian_dists_buster_contrib_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root 3.6M Jul  3  2019 deb.debian.org_debian_dists_buster_main_dep11_icons-48x48.tar.gz
-rw-r--r-- 1 root root 7.3M Jul  3  2019 deb.debian.org_debian_dists_buster_main_dep11_icons-64x64.tar.gz
-rw-r--r-- 1 root root 5.7M Jul  3  2019 deb.debian.org_debian_dists_buster_main_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root  439 Nov 13 03:02 security.debian.org_debian-security_dists_buster_updates_non-free_i18n_Translation-en
-rw-r--r-- 1 root root 1.1K Dec 13 17:11 security.debian.org_debian-security_dists_buster_updates_non-free_source_Sources
-rw-r--r-- 1 root root  711 Dec 13 17:11 security.debian.org_debian-security_dists_buster_updates_non-free_binary-amd64_Packages
-rw-r----- 1 root root    0 Jan 27 06:10 lock
drwxr-xr-x 2 _apt root 4.0K Jan 27 06:10 auxfiles
-rw-r--r-- 1 root root    0 Feb  8 07:28 deb.debian.org_debian_dists_buster_non-free_i18n_Translation-en
-rw-r--r-- 1 root root    0 Feb  8 07:28 deb.debian.org_debian_dists_buster_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root    0 Feb  8 07:28 deb.debian.org_debian_dists_buster_non-free_source_Sources
-rw-r--r-- 1 root root    0 Feb  8 07:28 deb.debian.org_debian_dists_buster_main_i18n_Translation-en
-rw-r--r-- 1 root root    0 Feb  8 07:28 deb.debian.org_debian_dists_buster_main_source_Sources
-rw-r--r-- 1 root root    0 Feb  8 07:28 deb.debian.org_debian_dists_buster_main_binary-amd64_Packages
-rw-r--r-- 1 root root 119K Feb  8 08:10 deb.debian.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root 2.2K Feb 23 17:26 deb.debian.org_debian_dists_buster-updates_main_i18n_Translation-en.diff_Index
-rw-r--r-- 1 root root  25K Feb 23 17:26 deb.debian.org_debian_dists_buster-updates_main_i18n_Translation-en
-rw-r--r-- 1 root root 2.2K Feb 23 17:26 deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root  38K Feb 23 17:26 deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root 2.2K Feb 23 17:26 deb.debian.org_debian_dists_buster-updates_main_source_Sources.diff_Index
-rw-r--r-- 1 root root 9.4K Feb 23 17:26 deb.debian.org_debian_dists_buster-updates_main_source_Sources
-rw-r--r-- 1 root root 7.5K Mar  9 17:15 deb.debian.org_debian_dists_buster-backports_non-free_i18n_Translation-en.diff_Index
-rw-r--r-- 1 root root 240K Mar  9 17:15 deb.debian.org_debian_dists_buster-backports_non-free_i18n_Translation-en
-rw-r--r-- 1 root root 7.0K Apr  3 11:02 deb.debian.org_debian_dists_buster-backports_non-free_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root 153K Apr  3 11:02 deb.debian.org_debian_dists_buster-backports_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root 7.0K Apr  3 11:02 deb.debian.org_debian_dists_buster-backports_non-free_source_Sources.diff_Index
-rw-r--r-- 1 root root  35K Apr  3 11:02 deb.debian.org_debian_dists_buster-backports_non-free_source_Sources
-rw-r--r-- 1 root root 685K Apr  4 11:40 security.debian.org_debian-security_dists_buster_updates_main_i18n_Translation-en
-rw-r--r-- 1 root root 6.5K Apr  6 05:05 deb.debian.org_debian_dists_buster-backports_contrib_i18n_Translation-en.diff_Index
-rw-r--r-- 1 root root  18K Apr  6 05:05 deb.debian.org_debian_dists_buster-backports_contrib_i18n_Translation-en
-rw-r--r-- 1 root root  11K Apr  6 05:05 deb.debian.org_debian_dists_buster-backports_contrib_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root  26K Apr  6 05:05 deb.debian.org_debian_dists_buster-backports_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root  12K Apr  6 05:06 deb.debian.org_debian_dists_buster-backports_contrib_source_Sources.diff_Index
-rw-r--r-- 1 root root 9.4K Apr  6 05:06 deb.debian.org_debian_dists_buster-backports_contrib_source_Sources
-rw-r--r-- 1 root root 715K Apr  8 14:24 security.debian.org_debian-security_dists_buster_updates_main_source_Sources
-rw-r--r-- 1 root root 1.1M Apr  8 14:24 security.debian.org_debian-security_dists_buster_updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root  64K Apr  9 12:10 security.debian.org_debian-security_dists_buster_updates_InRelease
-rw-r--r-- 1 root root  28K Apr 12 11:10 deb.debian.org_debian_dists_buster-backports_main_i18n_Translation-en.diff_Index
-rw-r--r-- 1 root root 1.1M Apr 12 11:10 deb.debian.org_debian_dists_buster-backports_main_i18n_Translation-en
-rw-r--r-- 1 root root  28K Apr 13 05:09 deb.debian.org_debian_dists_buster-backports_main_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root 1.5M Apr 13 05:09 deb.debian.org_debian_dists_buster-backports_main_binary-amd64_Packages
-rw-r--r-- 1 root root  28K Apr 13 05:09 deb.debian.org_debian_dists_buster-backports_main_source_Sources.diff_Index
-rw-r--r-- 1 root root 1.7M Apr 13 05:09 deb.debian.org_debian_dists_buster-backports_main_source_Sources
-rw-r--r-- 1 root root  49K Apr 13 05:14 deb.debian.org_debian_dists_buster-updates_InRelease
-rw-r--r-- 1 root root  46K Apr 13 05:14 deb.debian.org_debian_dists_buster-backports_InRelease
drwx------ 2 _apt root  12K Apr 13 16:05 partial


Check the permissions for those directories:
Code: Select all
ls -ld /var/{lib/apt/lists,cache/apt}


There it is:

Code: Select all
root@lqboa:/var/lib/apt/lists# ls -ld /var/{lib/apt/lists,cache/apt}
drwxr-xr-x 4 root root  12K Apr 13 12:21 /var/lib/apt/lists
drwxr-xr-x 3 root root 4.0K Apr 13 16:05 /var/cache/apt
Marcelo Lima (Computational Chemist)
Debian GNU/Linux 10.2 (buster) Kernel: Linux 5.4.0-0.bpo.4-amd64
Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz x86_64 4Gb RAM
NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
User avatar
mdeflima
 
Posts: 7
Joined: 2020-04-09 20:54

Re: APT is not finding some common packages

Postby Head_on_a_Stick » 2020-04-14 11:36

That all looks normal :?

Are you behind a proxy or something?
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12744
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: APT is not finding some common packages

Postby mdeflima » 2020-04-14 12:30

Head_on_a_Stick wrote:That all looks normal :?

Are you behind a proxy or something?


No, no proxy. So, some packages apt handles normally, and apt-update works great. The problem I've reported just happens with a part of the official packages.

Please help!

Marcelo.
Last edited by mdeflima on 2020-04-14 16:23, edited 1 time in total.
Marcelo Lima (Computational Chemist)
Debian GNU/Linux 10.2 (buster) Kernel: Linux 5.4.0-0.bpo.4-amd64
Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz x86_64 4Gb RAM
NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
User avatar
mdeflima
 
Posts: 7
Joined: 2020-04-09 20:54

Re: APT is not finding some common packages

Postby Head_on_a_Stick » 2020-04-14 14:43

Can we see
Code: Select all
apt policy

Perhaps try loading up a live ISO image and installing stuff there to rule out a problem with your network.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12744
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: APT is not finding some common packages

Postby mdeflima » 2020-04-14 16:17

Head_on_a_Stick wrote:Can we see
Code: Select all
apt policy

Perhaps try loading up a live ISO image and installing stuff there to rule out a problem with your network.


I'll try that too.


Code: Select all
root@lqboa:/home/mflima# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 100 http://deb.debian.org/debian buster-backports/non-free amd64 Packages
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=non-free,b=amd64
     origin deb.debian.org
 100 http://deb.debian.org/debian buster-backports/contrib amd64 Packages
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=contrib,b=amd64
     origin deb.debian.org
 100 http://deb.debian.org/debian buster-backports/main amd64 Packages
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian buster-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://security.debian.org/debian-security buster/updates/non-free amd64 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=non-free,b=amd64
     origin security.debian.org
 500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://deb.debian.org/debian buster/contrib amd64 Packages
     release v=10.3,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian buster/non-free amd64 Packages
     release v=10.3,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian buster/main amd64 Packages
     release v=10.3,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:
root@lqboa:/home/mflima#
Marcelo Lima (Computational Chemist)
Debian GNU/Linux 10.2 (buster) Kernel: Linux 5.4.0-0.bpo.4-amd64
Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz x86_64 4Gb RAM
NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
User avatar
mdeflima
 
Posts: 7
Joined: 2020-04-09 20:54


Return to System configuration

Who is online

Users browsing this forum: No registered users and 18 guests

fashionable