How to installed broken packages?

Ramya

New Member
Dec 20, 2021
7
0
1
30
I was upgrading the system from Proxmox version 6 to 7, and I think ,the upgrade didn't went well,

apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
bsdmainutils : Depends: ncal but it is not installed
libc-bin : Depends: libc6 (< 2.29) but 2.31-13+deb11u2 is installed
libc6-dev : Depends: libnsl-dev but it is not installed
locales : Depends: libc-bin (> 2.31) but 2.28-10ionos1 is installed
openssh-sftp-server : Depends: openssh-client (= 1:7.9p1-10+deb10u2) but 1:8.4p1-5 is installed
python3 : Depends: python3.7 (>= 3.7.3-1~) but it is not installable
python3-venv : Depends: python3.9-venv (>= 3.9.2-0~) but it is not installed
Depends: python3 (= 3.9.2-3) but 3.7.3-1 is installed
Depends: python3-distutils (>= 3.9.2-0~) but 3.7.3-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


pveversion -v
proxmox-ve: 6.4-1 (running kernel: 5.4.157-1-pve)
pve-manager: 6.4-13 (running version: 6.4-13/9f411e79)
pve-kernel-5.4: 6.4-11
pve-kernel-helper: 6.4-11
pve-kernel-5.4.157-1-pve: 5.4.157-1
pve-kernel-5.4.128-1-pve: 5.4.128-2
pve-kernel-5.4.119-1-pve: 5.4.119-1


Tried to fix the issue but couldn't ,Could anyone give me some input to progress further?
Do i need to downgrade the version
 
Hi,

Please post the output of the following commands:
Bash:
pveversion -v #full output
grep '' /etc/apt/sources.list
grep '' /etc/apt/sources.list.d/*
apt update
apt -f install
 
Hi,

Could you please use the below sources in /etc/apt/sources.list

Code:
deb http://ftp.debian.org/debian bullseye main contrib
deb http://ftp.debian.org/debian bullseye-updates main contrib

# security updates
deb http://security.debian.org/debian-security bullseye-security main contrib

and comment out all sources in /etc/apt/sources.list.d/ and only use the PVE repository [0] for now? then do apt update && apt dist-upgrade

[0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_package_repositories
 
/etc/apt/sources.list.d# ls -l
total 24
-rw-r--r-- 1 root root 305 Dez 20 12:29 backports.list
-rw-r--r-- 1 root root 193 Dez 20 12:32 ceph.list
-rw-r--r-- 1 root root 147 Dez 20 12:30 docker.list
-rw-r--r-- 1 root root 133 Dez 20 12:30 elastic-7.x.list.list
-rw-r--r-- 1 root root 131 Dez 20 12:30 profitbricks.list
-rw-r--r-- 1 root root 144 Dez 20 12:31 proxmox.list


I can't see any PVE repository in /etc/apt/sources.list.d/.
can i try with the above change, or i am going in wrong direction while updating it?
 
apt update && apt dist-upgrade
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
Get:5 http://download.proxmox.com/debian/pve bullseye InRelease [3.053 B]
Get:6 http://download.proxmox.com/debian/pve bullseye/pve-no-subscription amd64 Packages [188 kB]
Fetched 191 kB in 2s (121 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
565 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
bsdmainutils : Depends: ncal but it is not installed
libc-bin : Depends: libc6 (< 2.29) but 2.31-13+deb11u2 is installed
libc6-dev : Depends: libnsl-dev but it is not installed
locales : Depends: libc-bin (> 2.31) but 2.28-10ionos1 is installed
openssh-sftp-server : Depends: openssh-client (= 1:7.9p1-10+deb10u2) but 1:8.4p1-5 is installed
python3 : Depends: python3.7 (>= 3.7.3-1~) but it is not installable
python3-venv : Depends: python3.9-venv (>= 3.9.2-0~) but it is not installed
Depends: python3 (= 3.9.2-3) but 3.7.3-1 is installed
Depends: python3-distutils (>= 3.9.2-0~) but 3.7.3-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

cat proxmox.list
#deb http://download.proxmox.com/debian/pve buster pve-no-subscription
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
 
apt -o Debug:: pkgProblemResolver=yes dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
bsdmainutils : Depends: ncal but it is not installed
libc-bin : Depends: libc6 (< 2.29) but 2.31-13+deb11u2 is installed
libc6-dev : Depends: libnsl-dev but it is not installed
locales : Depends: libc-bin (> 2.31) but 2.28-10ionos1 is installed
openssh-sftp-server : Depends: openssh-client (= 1:7.9p1-10+deb10u2) but 1:8.4p1-5 is installed
python3 : Depends: python3.7 (>= 3.7.3-1~) but it is not installable
python3-venv : Depends: python3.9-venv (>= 3.9.2-0~) but it is not installed
Depends: python3 (= 3.9.2-3) but 3.7.3-1 is installed
Depends: python3-distutils (>= 3.9.2-0~) but 3.7.3-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
Last edited: