Cryptsetup missing on one machine but present on another identical installation

User2389475

New Member
Jan 21, 2025
9
0
1
Hello proxmox community,

I'm trying to install cryptsetup because it is missing for a reason that escape me and I'm getting the following error:

Package cryptsetup 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 'cryptsetup' has no installation candidate

I am perplexed because I don't have this problem on another identical installation.

The debian versions are the same; the apt lists are the same; the CPU architecture are the same, etc...

Linux working 6.8.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-1 (2024-08-05T16:17Z) x86_64
root@working:~# apt update
Hit:5 http://security.debian.org bookworm-security InRelease
Hit:1 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:2 http://download.proxmox.com/debian/ceph-reef bookworm InRelease
Hit:4 http://ftp.ca.debian.org/debian bookworm-updates InRelease
Hit:3 http://ftp.ca.debian.org/debian bookworm InRelease


Linux notworking 6.8.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-1 (2024-08-05T16:17Z) x86_64
root@notworking:~# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:5 http://download.proxmox.com/debian/ceph-reef bookworm InRelease
Hit:3 http://ftp.ca.debian.org/debian bookworm-updates InRelease
Hit:2 http://ftp.ca.debian.org/debian bookworm InRelease
 
Last edited:
cryptsetup is in "main":
Code:
~# apt policy cryptsetup
cryptsetup:
  Installed: (none)
  Candidate: 2:2.6.1-4~deb12u2
  Version table:
     2:2.6.1-4~deb12u2 500
        500 http://ftp.de.debian.org/debian bookworm/main amd64 Packages

Please run a fresh "apt update" (and full-upgrade to install pending updates) and then post your "apt policy cryptsetup". (If you see errors post them too...)
 
please also post the contents of /etc/apt/sources.list and all files in /etc/apt/sources.list.d/
 
Please run a fresh "apt update" (and full-upgrade to install pending updates) and then post your "apt policy cryptsetup". (If you see errors post them too...)
No package left to install.

Bash:
apt policy cryptsetup
cryptsetup:
  Installed: (none)
  Candidate: (none)
  Version table:
 
Last edited:
please also post the contents of /etc/apt/sources.list and all files in /etc/apt/sources.list.d/
Bash:
cat /etc/apt/sources.list
deb http://ftp.ca.debian.org/debian bookworm main contrib
deb http://ftp.ca.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org bookworm-security main contrib
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

Bash:
 cat /etc/apt/sources.list.d/*
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
 
Well..., I do not see any problem - that situation is... strange :-(

Also things like "disk full" or "internet down" should generate an error message - at least. I've tried ftp.ca.debian.org, and it gives me the expected version.

Any chance that you are behind a forced intermediate proxy which damages "some" things? Some other extraordinary things, network related?

After "apt update", do you see the lists downloaded? Mine (from ftp.ca) look like this:
Code:
ls -alt /var/lib/apt/lists/ | grep ca
-rw-r--r-- 1 root root    55443 21. Jan 15:21 ftp.ca.debian.org_debian_dists_bookworm-updates_InRelease
-rw-r--r-- 1 root root    74682 14. Jan 21:03 ftp.ca.debian.org_debian_dists_bookworm-updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root    89832 14. Jan 21:03 ftp.ca.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en
-rw-r--r-- 1 root root   151037 11. Jan 11:34 ftp.ca.debian.org_debian_dists_bookworm_InRelease
-rw-r--r-- 1 root root 50045047 11. Jan 10:46 ftp.ca.debian.org_debian_dists_bookworm_main_binary-amd64_Packages
-rw-r--r-- 1 root root 32714163 11. Jan 10:46 ftp.ca.debian.org_debian_dists_bookworm_main_i18n_Translation-en
-rw-r--r-- 1 root root   233996 11. Jan 10:45 ftp.ca.debian.org_debian_dists_bookworm_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root   189292 11. Jan 10:45 ftp.ca.debian.org_debian_dists_bookworm_contrib_i18n_Translation-en
-rw-r--r-- 1 root root     1224 16. Feb 2024  ftp.ca.debian.org_debian_dists_bookworm-updates_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root      538 16. Feb 2024  ftp.ca.debian.org_debian_dists_bookworm-updates_contrib_i18n_Translation-en
-rw-r--r-- 1 root root  6949579  9. Jun 2023  ftp.ca.debian.org_debian_dists_bookworm_main_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root    18594  1. Jun 2023  ftp.ca.debian.org_debian_dists_bookworm_contrib_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root  8017516 31. Mai 2023  ftp.ca.debian.org_debian_dists_bookworm_main_i18n_Translation-de
-rw-r--r-- 1 root root     1347 20. Dez 2022  ftp.ca.debian.org_debian_dists_bookworm_main_i18n_Translation-de%5fDE
 
Well..., I do not see any problem - that situation is... strange :-(

Also things like "disk full" or "internet down" should generate an error message - at least. I've tried ftp.ca.debian.org, and it gives me the expected version.

Any chance that you are behind a forced intermediate proxy which damages "some" things? Some other extraordinary things, network related?

After "apt update", do you see the lists downloaded? Mine (from ftp.ca) look like this:
Code:
ls -alt /var/lib/apt/lists/ | grep ca
-rw-r--r-- 1 root root    55443 21. Jan 15:21 ftp.ca.debian.org_debian_dists_bookworm-updates_InRelease
-rw-r--r-- 1 root root    74682 14. Jan 21:03 ftp.ca.debian.org_debian_dists_bookworm-updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root    89832 14. Jan 21:03 ftp.ca.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en
-rw-r--r-- 1 root root   151037 11. Jan 11:34 ftp.ca.debian.org_debian_dists_bookworm_InRelease
-rw-r--r-- 1 root root 50045047 11. Jan 10:46 ftp.ca.debian.org_debian_dists_bookworm_main_binary-amd64_Packages
-rw-r--r-- 1 root root 32714163 11. Jan 10:46 ftp.ca.debian.org_debian_dists_bookworm_main_i18n_Translation-en
-rw-r--r-- 1 root root   233996 11. Jan 10:45 ftp.ca.debian.org_debian_dists_bookworm_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root   189292 11. Jan 10:45 ftp.ca.debian.org_debian_dists_bookworm_contrib_i18n_Translation-en
-rw-r--r-- 1 root root     1224 16. Feb 2024  ftp.ca.debian.org_debian_dists_bookworm-updates_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root      538 16. Feb 2024  ftp.ca.debian.org_debian_dists_bookworm-updates_contrib_i18n_Translation-en
-rw-r--r-- 1 root root  6949579  9. Jun 2023  ftp.ca.debian.org_debian_dists_bookworm_main_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root    18594  1. Jun 2023  ftp.ca.debian.org_debian_dists_bookworm_contrib_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root  8017516 31. Mai 2023  ftp.ca.debian.org_debian_dists_bookworm_main_i18n_Translation-de
-rw-r--r-- 1 root root     1347 20. Dez 2022  ftp.ca.debian.org_debian_dists_bookworm_main_i18n_Translation-de%5fDE
I normally have a firewall rule to disable all internet access except updates, but a bug in the dynamic allow list generation causes the network request to fail the first time, which then causes
Bash:
apt-get update
to hang, but the firewall rule is disabled at the moment. I don't know why cryptsetup is not already installed though. I suspect a corrupted file. What if I delete every file in `ls -alt /var/lib/apt/lists/ | grep ca` ?

Bash:
ls -alt /var/lib/apt/lists/ | grep ca
-rw-r--r-- 1 root root   55443 Jan 21 09:21 ftp.ca.debian.org_debian_dists_bookworm-updates_InRelease
-rw-r--r-- 1 root root   15093 Jan 14 15:17 ftp.ca.debian.org_debian_dists_bookworm-updates_main_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root   15093 Jan 14 15:17 ftp.ca.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en.diff_Index
-rw-r--r-- 1 root root       0 Jan 14 15:17 ftp.ca.debian.org_debian_dists_bookworm-updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root       0 Jan 14 15:17 ftp.ca.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en
-rw-r--r-- 1 root root  151037 Jan 11 05:34 ftp.ca.debian.org_debian_dists_bookworm_InRelease
-rw-r--r-- 1 root root       0 Jan 11 04:46 ftp.ca.debian.org_debian_dists_bookworm_main_binary-amd64_Packages
-rw-r--r-- 1 root root       0 Jan 11 04:46 ftp.ca.debian.org_debian_dists_bookworm_main_i18n_Translation-en
-rw-r--r-- 1 root root       0 Jan 11 04:45 ftp.ca.debian.org_debian_dists_bookworm_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root       0 Jan 11 04:45 ftp.ca.debian.org_debian_dists_bookworm_contrib_i18n_Translation-en
-rw-r--r-- 1 root root    1224 Feb 16  2024 ftp.ca.debian.org_debian_dists_bookworm-updates_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root     538 Feb 16  2024 ftp.ca.debian.org_debian_dists_bookworm-updates_contrib_i18n_Translation-en
 
Last edited:
you can do that, and then re-run `apt update` to download them again.. I suspect the 0-byte files there are the issue.
 
  • Like
Reactions: User2389475

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!