
나는 arm64 하드웨어에서 debian linux를 실행하고 있으며 스트레치에서 버스터로 dist 업그레이드를 수행했는데 체계적으로 다음 메시지가 수신되는 것을 제외하면 모든 것이 잘 작동하는 것 같습니다.
Error connecting: Could not connect: Connection refused
각 적절한 명령 뒤에.
예를 들어 적절한 업데이트는 다음을 반환합니다.
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
다시 실행해 보세요. 그런 다음 실패한 후크를 찾을 때까지 각 파일의 이름을 바꿉니다.