Debian buster arm64 apt 返回错误消息,软件包安装仍然有效

Debian buster arm64 apt 返回错误消息,软件包安装仍然有效

我在arm64硬件上运行debian linux,刚刚做了从stretch到buster的dist升级,一切似乎都正常,除了我系统地收到以下消息:

Error connecting: Could not connect: Connection refused

在每个 apt 命令之后。

例如 apt update 将返回:

Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://deb.debian.org/debian buster/main arm64 Packages [7736 kB]
Get:3 http://deb.debian.org/debian buster/main Translation-en [5968 kB]
Get:4 http://deb.debian.org/debian buster/contrib arm64 Packages [38.7 kB]
Get:5 http://deb.debian.org/debian buster/contrib Translation-en [44.5 kB]
Fetched 13.9 MB in 5s (3012 kB/s)
Error connecting: Could not connect: Connection refused
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

值得注意的是,即使继续出现相同的消息,软件包也确实安装成功,例如,安装 nmap:

root@localhost:/home/marc# apt install nmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cgmanager default-mysql-server galera-3 libaio1 libass5 libavcodec57 libavdevice57 libavfilter6 libavformat57
  libavresample3 libavutil55 libbind9-140 libblas-common libbluray1 libboost-iostreams1.62.0 libcdio-cdda1
  libcdio-paranoia1 libcdio13 libcgmanager0 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libdns162
  libdrm-freedreno1 libebur128-1 libevent-2.0-5 libfile-copy-recursive-perl libgcr-3-common libgfortran3
Get:2 http://deb.debian.org/debian buster/main arm64 liblua5.3-0 arm64 5.3.3-1.1 [110 kB]
Get:3 http://deb.debian.org/debian buster/main arm64 nmap-common all 7.70+dfsg1-6+deb10u1 [3898 kB]
Get:4 http://deb.debian.org/debian buster/main arm64 nmap arm64 7.70+dfsg1-6+deb10u1 [1844 kB]
Fetched 5889 kB in 1s (11.3 MB/s)
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package liblinear3:arm64.
(Reading database ... 88667 files and directories currently installed.)
Preparing to unpack .../liblinear3_2.1.0+dfsg-4_arm64.deb ...
Unpacking liblinear3:arm64 (2.1.0+dfsg-4) ...
Selecting previously unselected package liblua5.3-0:arm64.
Preparing to unpack .../liblua5.3-0_5.3.3-1.1_arm64.deb ...
Unpacking liblua5.3-0:arm64 (5.3.3-1.1) ...
Selecting previously unselected package nmap-common.
Preparing to unpack .../nmap-common_7.70+dfsg1-6+deb10u1_all.deb ...
Unpacking nmap-common (7.70+dfsg1-6+deb10u1) ...
Selecting previously unselected package nmap.
Preparing to unpack .../nmap_7.70+dfsg1-6+deb10u1_arm64.deb ...
Unpacking nmap (7.70+dfsg1-6+deb10u1) ...
Setting up nmap-common (7.70+dfsg1-6+deb10u1) ...
Setting up liblinear3:arm64 (2.1.0+dfsg-4) ...
Setting up liblua5.3-0:arm64 (5.3.3-1.1) ...
Setting up nmap (7.70+dfsg1-6+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Error connecting: Could not connect: Connection refused

答案1

该错误来自系统的apt挂钩之一,该挂钩对于系统的整体功能并不重要。您可以在以下文件中找到详细信息/etc/apt/apt.conf.d;我怀疑你的情况的罪魁祸首可能是 PackageKit ( /etc/apt/apt.conf.d/20packagekit)。

如果您想找出哪个文件失败,请依次重命名每个文件,添加.disabled其名称,然后apt update再次运行。之后重命名每个文件,直到找到失败的钩子。

相关内容