[SOLVED] apt-get upgrade isn't working

Code:
apt-get install python3-idna
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-idna is already the newest version (3.3-2ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Not sure whenever there will be a next update for this package, will it update using apt or not?!
It should be version 3.3-1+deb12u1 according to my installation. Looks like you got the package from Ubuntu instead of Debian (Bookworm).
 
  • Like
Reactions: mido45
that is a completely wrong version though, you can't just install packages from Ubuntu on a Debian-based system..

maybe try the following:

Code:
rm -f /var/lib/apt/lists/*
apt update
apt-cache policy python3-idna

and post the output here again..
 
that is a completely wrong version though, you can't just install packages from Ubuntu on a Debian-based system..

maybe try the following:

Code:
rm -f /var/lib/apt/lists/*
apt update
apt-cache policy python3-idna

and post the output here again..

Code:
root@pve1:/var/lib/apt/lists# rm -f /var/lib/apt/lists/*
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory

root@pve1:/var/lib/apt/lists# apt update
Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:2 http://ftp.debian.org/debian bookworm InRelease [151 kB]
Get:3 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Get:4 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages [321 kB]
Get:5 http://ftp.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:6 http://security.debian.org bookworm-security/main amd64 Packages [164 kB]
Get:7 http://ftp.debian.org/debian bookworm/main amd64 Packages [8,788 kB]
Get:8 http://security.debian.org bookworm-security/main Translation-en [97.9 kB]
Get:9 http://security.debian.org bookworm-security/contrib amd64 Packages [644 B]
Get:10 http://security.debian.org bookworm-security/contrib Translation-en [372 B]
Get:11 http://ftp.debian.org/debian bookworm/main Translation-en [6,109 kB]
Get:12 http://ftp.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]
Get:13 http://ftp.debian.org/debian bookworm/contrib Translation-en [48.8 kB]
Get:14 http://ftp.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
Get:15 http://ftp.debian.org/debian bookworm-updates/main Translation-en [16.0 kB]
Get:16 http://ftp.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]
Get:17 http://ftp.debian.org/debian bookworm-updates/contrib Translation-en [408 B]
Fetched 15.9 MB in 2s (7,705 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

root@pve1:/var/lib/apt/lists# apt-cache policy python3-idna
python3-idna:
  Installed: 3.3-2ubuntu0.1
  Candidate: 3.3-2ubuntu0.1
  Version table:
 *** 3.3-2ubuntu0.1 100
        100 /var/lib/dpkg/status
     3.3-1+deb12u1 500
        500 http://ftp.debian.org/debian bookworm/main amd64 Packages

The output shows as @leesteken reported that version 3.3-1+deb12u1.
Should I remove the package 3.3-2ubuntu0.1 manually? and try to install the one from debian?
 
you can try "apt install python3-idna=3.3-1+deb12u1", and then "apt full-upgrade"
 
  • Like
Reactions: mido45
you can try "apt install python3-idna=3.3-1+deb12u1", and then "apt full-upgrade"

I think this solved it in the right way, What I should have done is installed manually the correct version (debian version).
Thank you all for your support.

Code:
root@pve1:/var/lib/apt/lists# apt install python3-idna=3.3-1+deb12u1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be DOWNGRADED:
  python3-idna
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 41.0 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian bookworm/main amd64 python3-idna all 3.3-1+deb12u1 [41.0 kB]
Fetched 41.0 kB in 0s (155 kB/s)
dpkg: warning: downgrading python3-idna from 3.3-2ubuntu0.1 to 3.3-1+deb12u1
(Reading database ... 78317 files and directories currently installed.)
Preparing to unpack .../python3-idna_3.3-1+deb12u1_all.deb ...
Unpacking python3-idna (3.3-1+deb12u1) over (3.3-2ubuntu0.1) ...
Setting up python3-idna (3.3-1+deb12u1) ...

root@pve1:/var/lib/apt/lists# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@pve1:/var/lib/apt/lists# apt-cache policy python3-idna
python3-idna:
  Installed: 3.3-1+deb12u1
  Candidate: 3.3-1+deb12u1
  Version table:
 *** 3.3-1+deb12u1 500
        500 http://ftp.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
root@pve1:/var/lib/apt/lists#
 
  • Like
Reactions: gfngfn256

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!