How to intall Pip, Venv And upgrade Python on Linode?

Hi,
I want to run some python scripts from my Linode, and for that, I need to upgrade the python version, install python3.10-venv and python3.10-pip, but when I try to, for example, install python3.9-pip I get a lot of errors as shown below. What can I do to solve this problem, and install these components?

root@localhost:~# apt install python3-pip --fix-missing
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
build-essential cpp cpp-11 dpkg-dev fakeroot g++ g++-11 gcc gcc-11 javascript-common libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan6 libatomic1 libc-dev-bin libc-devtools libc6-dev
libcc1-0 libcrypt-dev libdpkg-perl libexpat1-dev libfakeroot libfile-fcntllock-perl libgcc-11-dev libgomp1
libisl23 libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore liblsan0 libmpc3 libnsl-dev libpython3-dev
libpython3.9-dev libquadmath0 libstdc++-11-dev libtirpc-dev libtsan0 libubsan1 linux-libc-dev
lto-disabled-list make manpages-dev python-pip-whl python3-dev python3-wheel python3.9-dev rpcsvc-proto
zlib1g-dev
Suggested packages:
cpp-doc gcc-11-locales debian-keyring g++-multilib g++-11-multilib gcc-11-doc gcc-multilib autoconf automake
libtool flex bison gdb gcc-doc gcc-11-multilib apache2 | lighttpd | httpd glibc-doc bzr libstdc++-11-doc
make-doc
The following NEW packages will be installed:
build-essential cpp cpp-11 dpkg-dev fakeroot g++ g++-11 gcc gcc-11 javascript-common libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan6 libatomic1 libc-dev-bin libc-devtools libc6-dev
libcc1-0 libcrypt-dev libdpkg-perl libexpat1-dev libfakeroot libfile-fcntllock-perl libgcc-11-dev libgomp1
libisl23 libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore liblsan0 libmpc3 libnsl-dev libpython3-dev
libpython3.9-dev libquadmath0 libstdc++-11-dev libtirpc-dev libtsan0 libubsan1 linux-libc-dev
lto-disabled-list make manpages-dev python-pip-whl python3-dev python3-pip python3-wheel python3.9-dev
rpcsvc-proto zlib1g-dev
0 upgraded, 52 newly installed, 0 to remove and 35 not upgraded.
Need to get 191 MB/193 MB of archives.
After this operation, 588 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Ign:1 http://mirrors.linode.com/ubuntu impish-updates/main amd64 libc-dev-bin amd64 2.34-0ubuntu3.2
Ign:2 http://mirrors.linode.com/ubuntu impish-updates/main amd64 linux-libc-dev amd64 5.13.0-52.59
Err:3 http://mirrors.linode.com/ubuntu impish/main amd64 libcrypt-dev amd64 1:4.4.18-4ubuntu1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:4 http://mirrors.linode.com/ubuntu impish/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu5
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:5 http://mirrors.linode.com/ubuntu impish/main amd64 libtirpc-dev amd64 1.3.2-2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:6 http://mirrors.linode.com/ubuntu impish/main amd64 libnsl-dev amd64 1.3.0-2build1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:7 http://mirrors.linode.com/ubuntu impish-updates/main amd64 libc6-dev amd64 2.34-0ubuntu3.2
Err:8 http://mirrors.linode.com/ubuntu impish/main amd64 libisl23 amd64 0.24-1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:9 http://mirrors.linode.com/ubuntu impish/main amd64 libmpc3 amd64 1.2.0-1build1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:10 http://mirrors.linode.com/ubuntu impish/main amd64 cpp-11 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:11 http://mirrors.linode.com/ubuntu impish/main amd64 libcc1-0 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:1 http://security.ubuntu.com/ubuntu impish-updates/main amd64 libc-dev-bin amd64 2.34-0ubuntu3.2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:12 http://mirrors.linode.com/ubuntu impish/main amd64 libgomp1 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:13 http://mirrors.linode.com/ubuntu impish/main amd64 libitm1 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:14 http://mirrors.linode.com/ubuntu impish/main amd64 libatomic1 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:15 http://mirrors.linode.com/ubuntu impish/main amd64 libasan6 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:16 http://mirrors.linode.com/ubuntu impish/main amd64 liblsan0 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:2 http://security.ubuntu.com/ubuntu impish-updates/main amd64 linux-libc-dev amd64 5.13.0-52.59
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:7 http://security.ubuntu.com/ubuntu impish-updates/main amd64 libc6-dev amd64 2.34-0ubuntu3.2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:17 http://mirrors.linode.com/ubuntu impish/main amd64 libtsan0 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:18 http://mirrors.linode.com/ubuntu impish/main amd64 libubsan1 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:19 http://mirrors.linode.com/ubuntu impish/main amd64 libquadmath0 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:20 http://mirrors.linode.com/ubuntu impish/main amd64 libgcc-11-dev amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:21 http://mirrors.linode.com/ubuntu impish/main amd64 gcc-11 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:22 http://mirrors.linode.com/ubuntu impish/main amd64 libstdc++-11-dev amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:23 http://mirrors.linode.com/ubuntu impish/main amd64 g++-11 amd64 11.2.0-7ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:24 http://mirrors.linode.com/ubuntu impish/main amd64 make amd64 4.3-4ubuntu1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:25 http://mirrors.linode.com/ubuntu impish-updates/main amd64 libdpkg-perl all 1.20.9ubuntu2.2
Ign:26 http://mirrors.linode.com/ubuntu impish/main amd64 lto-disabled-list all 16
Ign:27 http://mirrors.linode.com/ubuntu impish-updates/main amd64 dpkg-dev all 1.20.9ubuntu2.2
Err:28 http://mirrors.linode.com/ubuntu impish/main amd64 build-essential amd64 12.9ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:29 http://mirrors.linode.com/ubuntu impish/main amd64 libfakeroot amd64 1.25.3-1.1ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:30 http://mirrors.linode.com/ubuntu impish/main amd64 fakeroot amd64 1.25.3-1.1ubuntu2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:31 http://mirrors.linode.com/ubuntu impish/main amd64 libalgorithm-diff-xs-perl amd64 0.04-6build1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:32 http://mirrors.linode.com/ubuntu impish-updates/main amd64 libc-devtools amd64 2.34-0ubuntu3.2
Ign:33 http://mirrors.linode.com/ubuntu impish-updates/main amd64 libexpat1-dev amd64 2.4.1-2ubuntu0.3
Err:34 http://mirrors.linode.com/ubuntu impish/main amd64 libfile-fcntllock-perl amd64 0.22-3build5
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:35 http://mirrors.linode.com/ubuntu impish/main amd64 libjs-jquery all 3.5.1+dfsg+~3.5.5-7
Ign:36 http://mirrors.linode.com/ubuntu impish/main amd64 libjs-underscore all 1.9.1~dfsg-3
Err:32 http://security.ubuntu.com/ubuntu impish-updates/main amd64 libc-devtools amd64 2.34-0ubuntu3.2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:37 http://mirrors.linode.com/ubuntu impish/main amd64 libjs-sphinxdoc all 3.5.4-2
Ign:38 http://mirrors.linode.com/ubuntu impish-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu7.1
Ign:39 http://mirrors.linode.com/ubuntu impish-updates/main amd64 libpython3.9-dev amd64 3.9.7-2ubuntu0.1
Err:40 http://mirrors.linode.com/ubuntu impish/main amd64 libpython3-dev amd64 3.9.4-1build1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:41 http://mirrors.linode.com/ubuntu impish/universe amd64 python-pip-whl all 20.3.4-4
Err:33 http://security.ubuntu.com/ubuntu impish-updates/main amd64 libexpat1-dev amd64 2.4.1-2ubuntu0.3
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:42 http://mirrors.linode.com/ubuntu impish-updates/main amd64 python3.9-dev amd64 3.9.7-2ubuntu0.1
Err:43 http://mirrors.linode.com/ubuntu impish/main amd64 python3-dev amd64 3.9.4-1build1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:44 http://mirrors.linode.com/ubuntu impish/universe amd64 python3-pip all 20.3.4-4
Ign:25 http://mirrors.linode.com/ubuntu impish-updates/main amd64 libdpkg-perl all 1.20.9ubuntu2.2
Err:26 http://mirrors.linode.com/ubuntu impish/main amd64 lto-disabled-list all 16
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:27 http://mirrors.linode.com/ubuntu impish-updates/main amd64 dpkg-dev all 1.20.9ubuntu2.2
Err:35 http://mirrors.linode.com/ubuntu impish/main amd64 libjs-jquery all 3.5.1+dfsg+~3.5.5-7
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:36 http://mirrors.linode.com/ubuntu impish/main amd64 libjs-underscore all 1.9.1~dfsg-3
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:37 http://mirrors.linode.com/ubuntu impish/main amd64 libjs-sphinxdoc all 3.5.4-2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:41 http://mirrors.linode.com/ubuntu impish/universe amd64 python-pip-whl all 20.3.4-4
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:44 http://mirrors.linode.com/ubuntu impish/universe amd64 python3-pip all 20.3.4-4
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:38 http://security.ubuntu.com/ubuntu impish-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu7.1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:39 http://security.ubuntu.com/ubuntu impish-updates/main amd64 libpython3.9-dev amd64 3.9.7-2ubuntu0.1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:42 http://security.ubuntu.com/ubuntu impish-updates/main amd64 python3.9-dev amd64 3.9.7-2ubuntu0.1
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Ign:25 http://security.ubuntu.com/ubuntu impish-updates/main amd64 libdpkg-perl all 1.20.9ubuntu2.2
Ign:27 http://security.ubuntu.com/ubuntu impish-updates/main amd64 dpkg-dev all 1.20.9ubuntu2.2
Err:25 http://security.ubuntu.com/ubuntu impish-updates/main amd64 libdpkg-perl all 1.20.9ubuntu2.2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Err:27 http://security.ubuntu.com/ubuntu impish-updates/main amd64 dpkg-dev all 1.20.9ubuntu2.2
404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
Selecting previously unselected package javascript-common.
(Reading database … 114924 files and directories currently installed.)
Preparing to unpack …/javascript-common_11+nmu1_all.deb …
Unpacking javascript-common (11+nmu1) …
Selecting previously unselected package manpages-dev.
Preparing to unpack …/manpages-dev_5.10-1ubuntu1_all.deb …
Unpacking manpages-dev (5.10-1ubuntu1) …
Selecting previously unselected package python3-wheel.
Preparing to unpack …/python3-wheel_0.34.2-1_all.deb …
Unpacking python3-wheel (0.34.2-1) …
Setting up javascript-common (11+nmu1) …
Setting up manpages-dev (5.10-1ubuntu1) …
Setting up python3-wheel (0.34.2-1) …
Processing triggers for man-db (2.9.4-2) …
Scanning processes…
Scanning linux images…

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.34-0ubuntu3.2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_5.13.0-52.59_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/libx/libxcrypt/libcrypt-dev_4.4.18-4ubuntu1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/r/rpcsvc-proto/rpcsvc-proto_1.4.2-0ubuntu5_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/libt/libtirpc/libtirpc-dev_1.3.2-2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/libn/libnsl/libnsl-dev_1.3.0-2build1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.34-0ubuntu3.2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/i/isl/libisl23_0.24-1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/m/mpclib3/libmpc3_1.2.0-1build1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/cpp-11_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libcc1-0_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libgomp1_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libitm1_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libatomic1_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libasan6_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/liblsan0_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libtsan0_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libubsan1_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libquadmath0_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libgcc-11-dev_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/gcc-11_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/libstdc%2B%2B-11-dev_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/g/gcc-11/g%2B%2B-11_11.2.0-7ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/m/make-dfsg/make_4.3-4ubuntu1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.20.9ubuntu2.2_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/l/lto-disabled-list/lto-disabled-list_16_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.20.9ubuntu2.2_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/b/build-essential/build-essential_12.9ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/f/fakeroot/libfakeroot_1.25.3-1.1ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/f/fakeroot/fakeroot_1.25.3-1.1ubuntu2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/liba/libalgorithm-diff-xs-perl/libalgorithm-diff-xs-perl_0.04-6build1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-devtools_2.34-0ubuntu3.2_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/expat/libexpat1-dev_2.4.1-2ubuntu0.3_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/libf/libfile-fcntllock-perl/libfile-fcntllock-perl_0.22-3build5_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/n/node-jquery/libjs-jquery_3.5.1%2Bdfsg%2B~3.5.5-7_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/u/underscore/libjs-underscore_1.9.1~dfsg-3_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/s/sphinx/libjs-sphinxdoc_3.5.4-2_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g-dev_1.2.11.dfsg-2ubuntu7.1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.9/libpython3.9-dev_3.9.7-2ubuntu0.1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/python3-defaults/libpython3-dev_3.9.4-1build1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/python-pip/python-pip-whl_20.3.4-4_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.9/python3.9-dev_3.9.7-2ubuntu0.1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/python3-defaults/python3-dev_3.9.4-1build1_amd64.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/python-pip/python3-pip_20.3.4-4_all.deb 404 Not Found [IP: 2600:1402:b800:43::1730:a28b 80]

1 Reply

Looking at the errors in the first section of your question, I can see that apt is trying to connect to "http://mirrors.linode.com/ubuntu impish/main", meaning you're probably running Ubuntu 21.10 "Impish Indri". This is important to note because that version of the Ubuntu distribution reached End of Life on July 14th of 2022.

Because of this, Linode no longer offers support for this distribution. I suggest upgrading your instance to an LTS distribution like 22.04 so you have access to the latest security updates and packages. Once you do that, you most likely won't have this issue anymore.

Alternatively, you can change your repository list to the ones used by an updated version of Ubuntu, however, there's no guarantee the packages will be backwards compatible with 21.10.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct