내 서버에서 다음과 같은 문제가 발생합니다.
sudo apt-get 업데이트가 성공적으로 작동하지만 sudo apt-get 업그레이드 가 다음 오류와 함께 실패합니다. 이 문제를 해결하도록 도와주세요.
administrator@myserver:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
firefox linux-headers-server linux-image-server linux-server
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
21 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up shared-mime-info (0.71-1ubuntu2) ...
/var/lib/dpkg/info/shared-mime-info.postinst: line 13: 17650 Segmentation fault update-mime-database.real /usr/share/mime
dpkg: error processing shared-mime-info (--configure):
subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libgtk2.0-0:
libgtk2.0-0 depends on shared-mime-info; however:
Package shared-mime-info is not configured yet.
dpkg: error processing libgtk2.0-0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chromium-browser:
chromium-browser depends on libgtk2.0-0 (>= 2.18.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing chromium-browser (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chromium-codecs-ffmpeg:
chromium-codecs-ffmpeg depends on chromium-browser (>= 4.0.203.0~); however:
Package chromium-browser is not configured yet.
dpkg: error processing chromium-codecs-ffmpeg (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chromium-browser-l10n:
chromium-browser-l10n depends on chromium-browser (= 16.0.912.77~r118311-0ubuntu0.10.04.1)No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
; however:
Package chromium-browser is not configured yet.
dpkg: error processing chromium-browser-l10n (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libevdocument2:
libevdocument2 depends on libgtk2.0-0 (>= 2.14.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libevdocument2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libevview2:
libevview2 depends on libevdocument2 (>= 2.29.5); however:
Package libevdocument2 is not configured yet.
libevview2 depends on libgtk2.0-0 (>= 2.20.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libevview2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of evince:
evince depends on libevdocument2 (>= 2.29.5); however:
Package libevdocument2 is not configured yet.
evince depends on libevview2 (>= 2.29.5)No apport report written because MaxReports is reached already
; however:
Package libevview2 is not configured yet.
evince depends on libgtk2.0-0 (>= 2.16.0); however:
Package libgtk2.0-0 is not configured yet.
evince depends on shared-mime-info; however:
Package shared-mime-info is not configured yet.
dpkg: error processing evince (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcalctool:
gcalctool depends on libgtk2.0-0 (>= 2.18.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing gcalctool (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgdict-1.0-6:
libgdict-1.0-6 depends on libgtk2.0-0 (>= 2.18.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgdict-1.0-6 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-utils:
gnome-utils depends on libgdict-1.0-6 (>= 2.23.90); however:
Package libgdict-1.0-6 is not configured yet.
gnome-utils depends on libgtk2.0-0 (>= 2.18.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing gnome-utils (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gtk2-engines-pixbuf:
gtk2-engines-pixbuf depends on gtk2.0-binver-2.10.0; however:
Package gtk2.0-binver-2.10.0 is not installed.
Package libgtk2.0-0 which provides gtk2.0-binver-2.10.0 is not configured yet.
gtk2-engines-pixbuf depends on libgtk2.0-0 (= 2.20.1-0ubuntu2.1); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing gtk2-engines-pixbuf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgail18:
libgail18 depends on libgtk2.0-0 (= 2.20.1-0ubuntu2.1); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgail18 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk2.0-bin:
libgtk2.0-bin depends on libgtk2.0-0 (>= 2.20.1-0ubuntu2.1); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing libgtk2.0-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pidgin:
pidgin depends on libgtk2.0-0 (>= 2.18.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing pidgin (--configure):
dependency problems - leaving unconfigured
Setting up update-manager (1:0.134.11.1) ...
dpkg: error processing update-manager (--configure):
subprocess installed post-installation script returned error exit status 245
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on libgtk2.0-0 (>= 2.14.0); however:
Package libgtk2.0-0 is not configured yet.
update-notifier depends on update-manager; however:
Package update-manager is not configured yet.
dpkg: error processing update-notifier (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of xulrunner-1.9.2:
xulrunner-1.9.2 depends on libgtk2.0-0 (>= 2.18.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing xulrunner-1.9.2 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of icedtea6-plugin:
icedtea6-plugin depends on xulrunner-1.9.2; however:
Package xulrunner-1.9.2 is not configured yet.
icedtea6-plugin depends on libgtk2.0-0 (>= 2.8.0); however:
Package libgtk2.0-0 is not configured yet.
dpkg: error processing icedtea6-plugin (--configure):
dependency problems - leaving unconfigured
Setting up libgweather-common (2.30.0-0ubuntu1.1) ...
No apport report written because MaxReports is reached already
dpkg: error processing libgweather-common (--configure):
subprocess installed post-installation script returned error exit status 245
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libgweather1:
libgweather1 depends on libgtk2.0-0 (>= 2.11.0); however:
Package libgtk2.0-0 is not configured yet.
libgweather1 depends on libgweather-common (>= 2.24.0); however:
Package libgweather-common is not configured yet.
dpkg: error processing libgweather1 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
shared-mime-info
libgtk2.0-0
chromium-browser
chromium-codecs-ffmpeg
chromium-browser-l10n
libevdocument2
libevview2
evince
gcalctool
libgdict-1.0-6
gnome-utils
gtk2-engines-pixbuf
libgail18
libgtk2.0-bin
pidgin
update-manager
update-notifier
xulrunner-1.9.2
icedtea6-plugin
libgweather-common
libgweather1
E: Sub-process /usr/bin/dpkg returned an error code (1)
administrator@myserver:~$
고마워, 아빈
답변
“dist-upgrade”솔루션이 작동하지 않으면 shared-mime-info 패키지를 강제로 다시 설치하십시오.
sudo apt-get update
sudo dpkg -P --force-all shared-mime-info
sudo apt-get install shared-mime-info
sudo apt-get -f install
sudo apt-get dist-upgrade
- 다시 실패하면 위 명령의 전체 출력이 필요합니다. 너무 큰 경우 http://www.pastebin.com을 사용 하여 여기 링크를 공유하십시오.
-
또한 다음의 출력이 필요합니다.
apt-cache policy shared-mime-info sudo gdb update-mime-database.real -ex 'r /usr/share/mime'
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/759525 :이 버그로 고통 받고있는 것이 있습니다.
답변
이 오류가 여전히 시냅틱을 열고> 편집> 손상된 패키지를 다시로드하고 모든 업그레이드를 표시하는 경우 sudo apt-get update && sudo apt-get dist-upgrade를 수행하십시오.
답변
이 문제는 동일한 패키지에 대해 세그먼테이션 오류가 있다는 점 에서이 StackOverflow 질문 과 매우 유사하게 보입니다.shared-mime-info
솔루션은 질문에 다시 수정되기 전에 주석에 묻혔습니다 (!)-maverick libxml2
패키지를 다운로드하고 실행하기 전에 이것을 설치하십시오.
sudo apt-get update && sudo apt-get upgrade
아키텍처에 적합한 .deb 파일을 다운로드하십시오 (32 비트는 i386이고 64bt는 amd64 임)
다음 구문을 통해 패키지를 설치하십시오.
sudo dpkg -i [foo].deb
여기서 [foo]는 다운로드 된 패키지 파일 이름입니다.
예를 들어 다음과 같은 것을 사용하십시오.
sudo dpkg -i libxml2_2.7.7.dfsg-4ubuntu0.3_i386.deb
답변
나는 이것이 오래되었다는 것을 알고 있지만 오류가 발생하여 수정했습니다. 나는 그것을하기 위해 적성을 사용했습니다.
먼저 가서 모두 제거 적성을 요청 shared-mime-info
하고libxml2
sud aptitude remove-mime-info libxml2를 제거하십시오
그런 다음 Aptitude는 많은 시스템 필수 패키지를 제거 할 것이라고 알려줍니다.
이 솔루션을 수락 하시겠습니까? [Y / n / q /?]
대답은 아니오 여야합니다 n
. 그것은 당신에게 다른 해결책을 줄 것입니다
다음 조치는 이러한 종속성을 해결합니다.
Install the following packages: 1) shared-mime-info:i386 [1.0-0ubuntu4.1 (precise-updates)] Keep the following packages at their current version: 2) libxml2 [2.7.8.dfsg-5.1ubuntu4.13 (now, precise-security, precise-updates)]
이 솔루션을 수락 하시겠습니까? [Y / n / q /?]
이를 위해 예라고 말합니다. 그런 다음 올바른 버전을 설치합니다.
sudo apt-get 업데이트
sudo apt-get 업그레이드
그것은 나를 위해 완벽하게 작동했습니다. 행운을 빕니다.
답변
나는 그것을 작동시키기 위해 다음을 수행했다.
cd /var/lib/dpkg/info
sudo rm shared-mime*
sudo apt-get install shared-mime-info