apt-get이 설치되지 않습니다: dpkg: 'gnome-themes-standard-data' 패키지의 파일 목록이 일반 파일이 아닙니다.

apt-get이 설치되지 않습니다: dpkg: 'gnome-themes-standard-data' 패키지의 파일 목록이 일반 파일이 아닙니다.

내 라즈베리 파이에서 웹캠 스트림을 실행하기 위해 패키지를 설치하려고 합니다. 갑자기 apt-get이 완전히 작동하지 않습니다. 문제를 해결할 수 있는 항목을 설치, 재설치 또는 제거하려고 할 때마다 다음 오류가 발생합니다.

dpkg: unrecoverable fatal error, aborting:
 files list for package 'gnome-themes-standard-data' is not a regular file
E: Sub-process /usr/bin/dpkg returned an error code (2)

정말 실망스럽습니다! 이 오류가 무엇인지, 원인이 무엇인지, 해결 방법이 무엇인지 전혀 알 수 없지만 이 오류로 인해 작업이 완전히 중단되었습니다. 완료될 때까지 실행되는 apt-get 업데이트를 시도했지만 문제 패키지를 업그레이드하거나 제거할 수 없습니다. apt-get 대신 -f 및 aptitude를 사용해도 중단됩니다.

ffmpeg를 설치하려고 합니다.

pi@raspberrypi:/var/backups$ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libav-tools libavdevice53 libavfilter2 libjack-jackd2-0 libopencv-core2.3 libopencv-imgproc2.3
Suggested packages:
  jackd2
The following NEW packages will be installed:
  ffmpeg libav-tools libavdevice53 libavfilter2 libjack-jackd2-0 libopencv-core2.3 libopencv-imgproc2.3
0 upgraded, 7 newly installed, 0 to remove and 150 not upgraded.
Need to get 0 B/2,235 kB of archives.
After this operation, 5,970 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Selecting previously unselected package libjack-jackd2-0:armhf.
dpkg: unrecoverable fatal error, aborting:
 files list for package 'gnome-themes-standard-data' is not a regular file
E: Sub-process /usr/bin/dpkg returned an error code (2)
pi@raspberrypi:/var/backups$ sudo apt-get purge gnome-themes-standard-data
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  gnome-themes-standard* gnome-themes-standard-data*
0 upgraded, 0 newly installed, 2 to remove and 150 not upgraded.
After this operation, 3,892 kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: unrecoverable fatal error, aborting:
 files list for package 'gnome-themes-standard-data' is not a regular file
E: Sub-process /usr/bin/dpkg returned an error code (2)
pi@raspberrypi:/var/backups$ sudo apt-get update
Hit http://mirrordirector.raspbian.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy InRelease
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
pi@raspberrypi:/var/backups$ sudo dpkg --configure -a
pi@raspberrypi:/var/backups$ sudo apt-get update
Hit http://mirrordirector.raspbian.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy InRelease
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Done
pi@raspberrypi:/var/backups$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  apt apt-utils binutils cups-bsd cups-client cups-common curl debian-reference-common debian-reference-en dmsetup
  dpkg dpkg-dev e2fslibs e2fsprogs gdb gdbserver gvfs gvfs-backends gvfs-common gvfs-daemons gvfs-fuse gvfs-libs
  idle idle-python3.2 idle3 ifupdown initramfs-tools initscripts iptables isc-dhcp-client isc-dhcp-common iso-codes
  krb5-locales libapt-inst1.5 libapt-pkg-dev libapt-pkg4.12 libarchive12 libavahi-client3 libavahi-common-data
  libavahi-common3 libavahi-glib1 libc-bin libc-dev-bin libc6 libc6-dev libcairo-gobject2 libcairo2 libcomerr2
  libcups2 libcupsimage2 libcurl3 libdbus-glib-1-2 libdevmapper-event1.02.1 libdevmapper1.02.1 libdpkg-perl
  libgail-3-0 libgcrypt11 libgl1-mesa-glx libglapi-mesa libglib2.0-0 libglib2.0-data libgnutls26 libgssapi-krb5-2
  libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libicu48
  libjavascriptcoregtk-1.0-0 libjavascriptcoregtk-3.0-0 libjson0 libk5crypto3 libkrb5-3 libkrb5support0 liblapack3
  liblapack3gf libldap-2.4-2 liblvm2app2.2 libnewt0.52 libobrender27 libobt0 libpixman-1-0 libpoppler19 libprocps0
  libproxy0 libqt4-network libqt4-svg libqt4-xml libqtcore4 libqtdbus4 libqtgui4 libsmbclient libsmpeg0 libss2
  libssl1.0.0 libsystemd-login0 libudev0 libwbclient0 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwebkitgtk-3.0-0
  libwebkitgtk-3.0-common libwebp2 libxml2 libxslt1.1 linux-libc-dev locales lxtask multiarch-support openbox
  openssh-client openssh-server openssl perl perl-base perl-modules pistore poppler-utils procps python
  python-minimal python-numpy python-rpi.gpio python3 python3-minimal python3-numpy python3-rpi.gpio python3.2
  python3.2-minimal rsyslog samba-common sgml-base smbclient ssh sudo sysv-rc sysvinit sysvinit-utils tasksel
  tasksel-data tzdata udev whiptail x11-common xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
150 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/118 MB of archives.
After this operation, 742 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
 files list for package 'gnome-themes-standard-data' is not a regular file
E: Sub-process /usr/bin/dpkg returned an error code (2)
pi@raspberrypi:/var/backups$ 

이 문제는 고칠 수 있나요? 아니면 SD 카드에서 Wheezy를 병합하고 이미지를 다시 만들어야 합니까?

어떤 도움이라도 대단히 감사하겠습니다.

답변1

해당 패키지의 파일 목록은 /var/lib/dpkg/info/gnome-themes-standard-data.list; 이것이 일반 파일이 아니라는 것은 매우 놀라운 일입니다.

나는 그것이 무엇인지 알아 내기 위해 ls -l또는 그것에 관해 제안하고 싶습니다. stat일반 파일이 아닌 다른 파일(예: 어딘가에 심볼릭 링크를 추가한 경우)이 있는 이유를 설명할 수 있으면 해당 파일을 실행 취소하세요. 아무 조치도 취하지 않았거나 뭔가 이상해 보인다면 fsck.

완전히 누락된 경우 에서 새 복사본을 가져올 수 있지만 ( 또는 및 .deb를 사용하여 추출 )dpkg-debartar~할 수 있었다시스템에 약간의 허접함을 남겨두십시오(설치된 목록이 패키지에 있는 목록과 정확히 일치하지 않는 경우).

관련 정보