출력 문제를 은폐하지 않기 위해,
- 실행하라는 메시지를 표시해 보았습니다.
autoremove
- 나는 그것을 실행했다.
- 세그폴트가 발생했습니다.
- 그 후에는 그럴 수 있다는 징후가 없었습니다
autoremove
. - 목록에 아직 뭔가가 있나요
autoremove
?
다시 시도하고 싶습니다 autoremove
.
# sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
amd64-microcode aspnetcore-store-2.0.0 dotnet-host dotnet-hostfxr-2.0.0 dotnet-runtime-deps-2.1.0-preview2-26406-04 gcc-7-base:i386 gfortran-mingw-w64
gfortran-mingw-w64-i686 gfortran-mingw-w64-x86-64 gnat-mingw-w64 gnat-mingw-w64-base gnat-mingw-w64-i686 gnat-mingw-w64-x86-64 gnome-icon-theme-symbolic gnome-orca
gnupg-agent gsettings-ubuntu-schemas gvfs-bin indicator-sound intel-microcode iucode-tool libapparmor-perl libarmadillo7 libbabeltrace-ctf1 libbind9-140
libboost-date-time1.62.0 libboost-filesystem1.62.0 libboost-filesystem1.62.0:i386 libboost-filesystem1.65.1:i386 libboost-iostreams1.62.0 libboost-system1.62.0
libboost-system1.62.0:i386 libboost-system1.65.1:i386 libboost-thread1.62.0 libc++1 libc++abi1 libcapnp-0.5.3 libcapnp-0.5.3:i386 libcapnp-0.6.1 libcapnp-0.6.1:i386
libcdio-cdda1 libcdio-paranoia1 libcdio13 libcommons-codec-java libcryptsetup4 libdfu1 libdns-export162 libdns162 libegl1-mesa:i386 libfreerdp-cache1.1
libfreerdp-client1.1 libfreerdp-codec1.1 libfreerdp-common1.1.0 libfreerdp-core1.1 libfreerdp-crypto1.1 libfreerdp-gdi1.1 libfreerdp-locale1.1
libfreerdp-plugins-standard libfreerdp-primitives1.1 libfreerdp-utils1.1 libfwupd1 libgcr-3-common libgeos-3.5.1 libgnome-desktop-3-12 libgnome-games-support-1-2
libgsoap-2.8.49 libgtk2-perl libhttpclient-java libhttpcore-java libical2 libicu57:i386 libidn11:i386 libisc-export160 libisc160 libisccc140 libisccfg140
libiso9660-10 libiso9660-8 libjsoup-java libkeybinder0 liblivemedia58 libllvm5.0:i386 liblouis12 liblouisutdml7 liblttng-ust-ctl2 liblttng-ust-ctl4 liblttng-ust0
liblwgeom-2.3-0 liblwres141 libmirclient9 libmirclient9:i386 libmircommon7 libmircommon7:i386 libmircore1 libmircore1:i386 libmirprotobuf3 libmirprotobuf3:i386
libnetcdf11 libntfs-3g872 libopencv-core3.1:i386 libopencv-core3.1 libopencv-imgproc3.1:i386 libopencv-imgproc3.1 liborcus-0.12-0 libp11-kit-gnome-keyring
libpango-perl libplexus-classworlds2-java libplexus-utils-java libpoppler68 libprotobuf-lite10:i386 libqca2-plugin-ossl libqgis-core2.14.18
libqgis-networkanalysis2.14.18 libqgispython2.14.18 libqpdf18 libqtwebkit4 libreoffice-gtk libreoffice-gtk2 libruby2.3 libsbsms10 libsodium18 libsodium18:i386
libsss-nss-idmap0 libsuitesparseconfig4 libtbb2 libtbb2:i386 libtinyxml2-5 libtxc-dxtn-s2tc0 libtxc-dxtn-s2tc0:i386 libunistring0 liburcu6 libva-wayland1
libvcdinfo0 libvpx4 libvpx4:i386 libwagon2-java libwinpr-crt0.1 libwinpr-dsparse0.1 libwinpr-environment0.1 libwinpr-file0.1 libwinpr-handle0.1 libwinpr-heap0.1
libwinpr-input0.1 libwinpr-interlocked0.1 libwinpr-library0.1 libwinpr-path0.1 libwinpr-pool0.1 libwinpr-registry0.1 libwinpr-rpc0.1 libwinpr-sspi0.1
libwinpr-synch0.1 libwinpr-sysinfo0.1 libwinpr-thread0.1 libwinpr-utils0.1 libx264-148 libx264-148:i386 libx265-130:i386 libx265-130 libxerces-c3.1 libxfont1
linux-headers-4.13.0-40 linux-headers-4.13.0-40-generic linux-image-4.13.0-40-generic linux-image-extra-4.13.0-40-generic python-beautifulsoup python-functools32
python-imaging ruby2.3 snapd-login-service tcpd xfce4-volumed
0 upgraded, 0 newly installed, 171 to remove and 0 not upgraded.
After this operation, 1,177 MB disk space will be freed.
Do you want to continue? [Y/n] y
E: Sub-process /usr/bin/dpkg received a segmentation fault.
자동으로 삭제될 수 있는 것은 없으며,
# sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
항목은 여전히 설치되어 있습니다( linux-image-4.13.0-40-generic
위 목록에 있는 참고는 ii
설치되었음을 의미함).
$ dpkg -l linux-image-extra-4.13.0-40-generic
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture
+++-====================================-=======================-=======================
ii linux-image-extra-4.13.0-40-generic 4.13.0-40.45 amd64
autoremove
여전히 수동으로 수행할 수 있지만 dpkg가 동일한 재배열을 다시 수행하기를 원합니다 .
# sudo apt-get --purge remove linux-image-4.13.0-40-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-4.13.0-40-generic* linux-image-extra-4.13.0-40-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 238 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
autoremove
데비안에게 목록을 다시 계산하라고 지시할 수 있나요 ?
Ubuntu 17.10에서 Ubuntu 18.04로의 dist 업그레이드입니다.
답변1
/var/lib/apt/extended_states
이는 dpkg가 성공을 반환하기 전에 이러한 패키지가 정리되는 apt의 버그처럼 보입니다 .
이전 항목을 비교하여 /var/backups/apt.extended_states*
이것이 사실인지 확인할 수 있습니다.
이것이 사실이라면 다음을 수행할 수 있습니다.
apt-mark auto linux-image-4.13.0-40-generic
제거된 자동 설치된 패키지 실행extended_states
백업에서 제거된 모든 항목을 복사합니다.
제가 아는 한 오류는 없습니다.데비안 대 apt이 질문과 일치하세요.