无法在我的 linux mint mate 20.3 Una 上更新 python3.10
No way to update python3.10 on my linux mint mate 20.3 Una
昨晚更新管理器表示有 2 个更新准备就绪。我想应用它们,但最后只有一个更新第二个 (python 3.10) 没有。很晚了所以去睡觉了。今天早上更新仍然存在,但现在有更多内容。
Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
和我的codelite相关的不完全一样。我查看了存储库和 ppa,找到了 codelite 的条目并将其禁用。那条消息不见了。但是更新仍然没有用。这次我使用的镜子有问题。换了镜像,其他的都正常。还在更新python 3.10 没办法。其他更新确实通过了,甚至 python 3.8 和 3.9。显然问题在于 python 3.10 并且似乎与依赖相关,但我很难过。
deadsnakes 存储库就在那里。我删除并重新安装了它。还是一样的问题。
这是我的终端的屏幕截图(当我使用 synaptic 时出现相同的消息):
这一切都围绕着 python 3.10 需要但不再存在的两个依赖项。但是推荐的命令只做 return 相同的结果。
The following packages have unmet dependencies.
python3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
那到底出了什么问题?除了 focal1 和 focal2 有什么不同?它们有根本的不同吗?最重要的是,我如何在不绕圈子的情况下解决这个问题。
哦,在我忘记之前。我在 gedit 中的 python 控制台在这些问题开始的同时停止工作,我也无法弄清楚问题出在哪里。怀疑他们是相关的。 e
提前致谢。
同样的事情发生在我身上。当 apt 失败时,我会搜索 https://pkgs.org/,搜索包,手动下载并安装。通常有效。
这是我在 Ubuntu 20.04
中解决相同问题的方法
找到包 libpython3.10-stdlib
$ apt-cache policy libpython3.10-stdlib
libpython3.10-stdlib:
Installed: 3.10.4-1+focal1
Candidate: 3.10.4-1+focal2
Version table:
3.10.4-1+focal2 500
500 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 Packages
*** 3.10.4-1+focal1 100
100 /var/lib/dpkg/status
$ ls -l /var/lib/dpkg/info | grep -i libpython3.10-stdlib
-rw-r--r-- 1 root root 14489 Apr 10 00:26 libpython3.10- stdlib:amd64.list
-rw-r--r-- 1 root root 23536 Mär 24 17:12 libpython3.10-stdlib:amd64.md5sums
-rwxr-xr-x 1 root root 1161 Mär 24 17:12 libpython3.10-stdlib:amd64.prerm
手动删除包
$ sudo mv /var/lib/dpkg/info/libpython3.10-stdlib:amd64.* /tmp
对 libpython3.10-minimal 重复相同的步骤。然后修复损坏的包
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libpython3.10-minimal libpython3.10-stdlib
The following packages will be upgraded:
libpython3.10-minimal libpython3.10-stdlib
2 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2.566 kB of archives.
After this operation, 68,6 kB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: warning: files list file for package 'libpython3.10-stdlib:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython3.10-minimal:amd64' missing; assuming package has no files currently installed
(Reading database ... 191581 files and directories currently installed.)
Preparing to unpack .../libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-stdlib:amd64 (3.10.4-1+focal2) over (3.10.4-1+focal1) ...
Preparing to unpack .../libpython3.10-minimal_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.4-1+focal2) over (3.10.4-1+focal1) ...
Setting up libpython3.10-minimal:amd64 (3.10.4-1+focal2) ...
Setting up python3.10-minimal (3.10.4-1+focal2) ...
Setting up libpython3.10-stdlib:amd64 (3.10.4-1+focal2) ...
Setting up libpython3.10:amd64 (3.10.4-1+focal2) ...
Setting up python3.10 (3.10.4-1+focal2) ...
Setting up libpython3.10-dev:amd64 (3.10.4-1+focal2) ...
Setting up python3.10-dev (3.10.4-1+focal2) ...
我有同样的错误。我按照第一个和第二个答案中的说明进行操作,得到了这个:
/var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.debE: Sub-process /usr/bin/dpkg returned an error code (1)
移动后:
sudo mv /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb /tmp
有效!
昨晚更新管理器表示有 2 个更新准备就绪。我想应用它们,但最后只有一个更新第二个 (python 3.10) 没有。很晚了所以去睡觉了。今天早上更新仍然存在,但现在有更多内容。
Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
和我的codelite相关的不完全一样。我查看了存储库和 ppa,找到了 codelite 的条目并将其禁用。那条消息不见了。但是更新仍然没有用。这次我使用的镜子有问题。换了镜像,其他的都正常。还在更新python 3.10 没办法。其他更新确实通过了,甚至 python 3.8 和 3.9。显然问题在于 python 3.10 并且似乎与依赖相关,但我很难过。
deadsnakes 存储库就在那里。我删除并重新安装了它。还是一样的问题。
这是我的终端的屏幕截图(当我使用 synaptic 时出现相同的消息):
这一切都围绕着 python 3.10 需要但不再存在的两个依赖项。但是推荐的命令只做 return 相同的结果。
The following packages have unmet dependencies. python3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
那到底出了什么问题?除了 focal1 和 focal2 有什么不同?它们有根本的不同吗?最重要的是,我如何在不绕圈子的情况下解决这个问题。
哦,在我忘记之前。我在 gedit 中的 python 控制台在这些问题开始的同时停止工作,我也无法弄清楚问题出在哪里。怀疑他们是相关的。 e
提前致谢。
同样的事情发生在我身上。当 apt 失败时,我会搜索 https://pkgs.org/,搜索包,手动下载并安装。通常有效。
这是我在 Ubuntu 20.04
中解决相同问题的方法找到包 libpython3.10-stdlib
$ apt-cache policy libpython3.10-stdlib
libpython3.10-stdlib:
Installed: 3.10.4-1+focal1
Candidate: 3.10.4-1+focal2
Version table:
3.10.4-1+focal2 500
500 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 Packages
*** 3.10.4-1+focal1 100
100 /var/lib/dpkg/status
$ ls -l /var/lib/dpkg/info | grep -i libpython3.10-stdlib
-rw-r--r-- 1 root root 14489 Apr 10 00:26 libpython3.10- stdlib:amd64.list
-rw-r--r-- 1 root root 23536 Mär 24 17:12 libpython3.10-stdlib:amd64.md5sums
-rwxr-xr-x 1 root root 1161 Mär 24 17:12 libpython3.10-stdlib:amd64.prerm
手动删除包
$ sudo mv /var/lib/dpkg/info/libpython3.10-stdlib:amd64.* /tmp
对 libpython3.10-minimal 重复相同的步骤。然后修复损坏的包
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libpython3.10-minimal libpython3.10-stdlib
The following packages will be upgraded:
libpython3.10-minimal libpython3.10-stdlib
2 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2.566 kB of archives.
After this operation, 68,6 kB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: warning: files list file for package 'libpython3.10-stdlib:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython3.10-minimal:amd64' missing; assuming package has no files currently installed
(Reading database ... 191581 files and directories currently installed.)
Preparing to unpack .../libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-stdlib:amd64 (3.10.4-1+focal2) over (3.10.4-1+focal1) ...
Preparing to unpack .../libpython3.10-minimal_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.4-1+focal2) over (3.10.4-1+focal1) ...
Setting up libpython3.10-minimal:amd64 (3.10.4-1+focal2) ...
Setting up python3.10-minimal (3.10.4-1+focal2) ...
Setting up libpython3.10-stdlib:amd64 (3.10.4-1+focal2) ...
Setting up libpython3.10:amd64 (3.10.4-1+focal2) ...
Setting up python3.10 (3.10.4-1+focal2) ...
Setting up libpython3.10-dev:amd64 (3.10.4-1+focal2) ...
Setting up python3.10-dev (3.10.4-1+focal2) ...
我有同样的错误。我按照第一个和第二个答案中的说明进行操作,得到了这个:
/var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.debE: Sub-process /usr/bin/dpkg returned an error code (1)
移动后: sudo mv /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb /tmp
有效!