‘apt-get install’중 “tar : 인식 할 수없는 옵션-경고” /var/cache/apt/archives/libfontconfig1_2.8.0-3_i386.deb (–unpack):

방금 apt-get upgrade데비안 5 vps에서 실행 했는데이 오류가 발생했습니다.

tar : 인식 할 수없는 옵션`–warning = no-timestamp ‘

이제 다른 패키지를 설치하려고하면 예 : imagemagick 같은 오류가 발생합니다.

li197-162:~# apt-get install imagemagick
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  pkg-config comerr-dev libssh2-1-dev libpcre3-dev libdb4.6-dev libsqlite3-dev libmysqlclient15-dev libldap2-dev libpcrecpp0 libexpat1-dev libpq5 libidn11-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  fontconfig-config imagemagick-common libfontconfig1 libfreetype6 libglib2.0-0 libice6 libjasper1 libjpeg8 liblcms1 liblqr-1-0 libltdl7 libmagickcore4 libmagickwand4 libpng12-0 libsm6 libtiff4
  libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxml2 libxml2-dev libxt6 ttf-dejavu-core x11-common
Suggested packages:
  imagemagick-doc autotrace cups-bsd lpr lprng enscript ffmpeg gimp gnuplot grads hp2xx html2ps libwmf-bin mplayer povray radiance sane-utils texlive-base-bin transfig xdg-utils libjasper-runtime
  liblcms-utils
Recommended packages:
  libmagickcore4-extra ghostscript netpbm ufraw-batch libglib2.0-data shared-mime-info gsfonts xml-core
The following NEW packages will be installed:
  fontconfig-config imagemagick imagemagick-common libfontconfig1 libfreetype6 libice6 libjasper1 libjpeg8 liblcms1 liblqr-1-0 libltdl7 libmagickcore4 libmagickwand4 libpng12-0 libsm6 libtiff4
  libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxt6 ttf-dejavu-core x11-common
The following packages will be upgraded:
  libglib2.0-0 libxml2 libxml2-dev
3 upgraded, 25 newly installed, 0 to remove and 190 not upgraded.
Need to get 0B/11.2MB of archives.
After this operation, 22.4MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
x11-common template parse error: Template parse error near `Choices-sr@latin.UTF-8: Samo glavni korisnik, Samo za korisnike konzole, Svako', in stanza #1 of /tmp/x11-common.template.65052

tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libfreetype6_2.4.6-2_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/ttf-dejavu-core_2.33-2_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/fontconfig-config_2.8.0-3_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libfontconfig1_2.8.0-3_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/x11-common_1%3a7.6+9_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libice6_2%3a1.0.7-2_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libpng12-0_1.2.46-3_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libsm6_2%3a1.2.0-2_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libjpeg8_8c-2_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libtiff4_3.9.5-2_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libxau6_1%3a1.0.6-3_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libxdmcp6_1%3a1.1.0-3_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libxcb1_1.7-3_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libx11-data_2%3a1.4.4-2_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libx11-6_2%3a1.4.4-2_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libxext6_2%3a1.3.0-3_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libxt6_1%3a1.1.1-2_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libxml2-dev_2.7.8.dfsg-4_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libxml2_2.7.8.dfsg-4_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libglib2.0-0_2.28.6-1_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/liblcms1_1.19.dfsg-1_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/liblqr-1-0_0.4.1-1.1_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libltdl7_2.4-4_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libjasper1_1.900.1-10_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/imagemagick-common_8%3a6.6.9.7-5_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libmagickcore4_8%3a6.6.9.7-5+b1_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/libmagickwand4_8%3a6.6.9.7-5+b1_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
tar: unrecognized option `--warning=no-timestamp'
Try `tar --help' or `tar --usage' for more information.
dpkg-deb: error: subprocess tar returned error exit status 64
dpkg: error processing /var/cache/apt/archives/imagemagick_8%3a6.6.9.7-5+b1_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libfreetype6_2.4.6-2_i386.deb
 /var/cache/apt/archives/ttf-dejavu-core_2.33-2_all.deb
 /var/cache/apt/archives/fontconfig-config_2.8.0-3_all.deb
 /var/cache/apt/archives/libfontconfig1_2.8.0-3_i386.deb
 /var/cache/apt/archives/x11-common_1%3a7.6+9_all.deb
 /var/cache/apt/archives/libice6_2%3a1.0.7-2_i386.deb
 /var/cache/apt/archives/libpng12-0_1.2.46-3_i386.deb
 /var/cache/apt/archives/libsm6_2%3a1.2.0-2_i386.deb
 /var/cache/apt/archives/libjpeg8_8c-2_i386.deb
 /var/cache/apt/archives/libtiff4_3.9.5-2_i386.deb
 /var/cache/apt/archives/libxau6_1%3a1.0.6-3_i386.deb
 /var/cache/apt/archives/libxdmcp6_1%3a1.1.0-3_i386.deb
 /var/cache/apt/archives/libxcb1_1.7-3_i386.deb
 /var/cache/apt/archives/libx11-data_2%3a1.4.4-2_all.deb
 /var/cache/apt/archives/libx11-6_2%3a1.4.4-2_i386.deb
 /var/cache/apt/archives/libxext6_2%3a1.3.0-3_i386.deb
 /var/cache/apt/archives/libxt6_1%3a1.1.1-2_i386.deb
 /var/cache/apt/archives/libxml2-dev_2.7.8.dfsg-4_i386.deb
 /var/cache/apt/archives/libxml2_2.7.8.dfsg-4_i386.deb
 /var/cache/apt/archives/libglib2.0-0_2.28.6-1_i386.deb
 /var/cache/apt/archives/liblcms1_1.19.dfsg-1_i386.deb
 /var/cache/apt/archives/liblqr-1-0_0.4.1-1.1_i386.deb
 /var/cache/apt/archives/libltdl7_2.4-4_i386.deb
 /var/cache/apt/archives/libjasper1_1.900.1-10_i386.deb
 /var/cache/apt/archives/imagemagick-common_8%3a6.6.9.7-5_all.deb
 /var/cache/apt/archives/libmagickcore4_8%3a6.6.9.7-5+b1_i386.deb
 /var/cache/apt/archives/libmagickwand4_8%3a6.6.9.7-5+b1_i386.deb
 /var/cache/apt/archives/imagemagick_8%3a6.6.9.7-5+b1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
li197-162:~#

나는 무엇이 잘못되었고 이것을 어떻게 고칠 지 전혀 모른다. 취소 할 수 apt-get upgrade있습니까?



답변

방금이 문제가 발생했습니다. Gilles가 제안했듯이 업그레이드 tar는 답이지만 (놀랍게도) 최신 deb의 압축을 풀고 설치하기 전에 버전 1.23 이상이 필요 tar하기 때문에 일반적인 방법으로 업그레이드 할 수 없습니다 . 최신 버전 이 설치 될 때 최신 버전이 먼저 설치 되도록하려면 명시적인 종속성이 필요 하지만 지원되지 않는 방식으로 다른 테스트 및 불안정한 릴리스를 결합하면 위험 할 수 있습니다. 여전히 바람직하지 않으며 이것은 시스템을 손상시키는 불행한 방법으로 보입니다.dpkgtardpkgdpkgtar

내 첫 번째 아이디어는 tar GNU 프로젝트에서 최신 바이너리를 찾는 것이었지만 불행히도 소스 다운로드 만 가지고 있으며 다양한 컴파일 도구를 설치하지 않은 경우 도움이되지 않습니다.

packages.debian.org 에서 시스템과 일치 하는 최신 tar바이너리 .deb를 다운로드하여 임시 위치에 넣으면 ( 예를 들어 깔끔하게) , 예를 들어 제 경우 와 같이 명령을 사용하여 내부에 넣을 수 있습니다 .
그런 다음 기존의 이전 버전을 사용 하여과 같은 명령으로 결과 파일의 압축을 풉니 다.이 버전은 버전 1.23까지 사용할 수없는 매개 변수를 사용하는 것과 같은 바보 같은 일을 시도하지 않는 한 작동 합니다. 🙂 그러면 바이너리 (데이터 .tar.gz 파일 내)가 아마 이진 것입니다 .
이 작업을 수행 한 후 해당 바이너리의 경로를 앞에 추가했습니다.arar x tar_1.26-2_amd64.deb
data.tar.gztar zxvf data.tar.gztar--warningtarbin/tar
PATH내 bash 쉘에서 변수를 사용하여 명령을 사용하여 수행 할 수 export PATH=/root/temp/bin:$PATH있지만 새 tar바이너리가 앉아있는 곳에 경로를 조정하십시오 . 그 후 , 정규 경로 에서 이전 버전을 찾기 전에 경로를보고 최신 바이너리를 찾기 dpkg --install tar_1.26-2_amd64.deb때문에 정규 작동 불가사의를 실행하십시오 .dpkgtarbin


답변

나는 ar내 시스템에 없었기 때문에이 끔찍한 kludge를했습니다.

mv /bin/tar /bin/tar.real
echo "tar.real xpf -" >/bin/tar
chmod +x /bin/tar
cd /
# put in the correct path
dpkg-deb -x /var/cache/apt/archives/tar_1.26-4_armel.deb .
# check things are working and then
#rm /bin/tar.real

답변

tar 패키지 다운로드에 대해 걱정할 필요가 없습니다.

업그레이드 중이기 때문에이 시점에 도달 할 가능성이 있으며, 패키지 관리 시스템이 이미 최신 tar 패키지를 다운로드했을 것이므로 다음을 기다리게됩니다.

/var/cache/apt/archives/tar_(version-release_platform).deb

예 :

# ls -t /var/cache/apt/archives/tar_*|head -1

/var/cache/apt/archives/tar_1.26-4_amd64.deb

이것이 내가 시스템을 고치는 방법입니다.

시스템에서 최신 버전을 찾으십시오.

root@host:~# ls -t /var/cache/apt/archives/tar_*|head -1
/var/cache/apt/archives/tar_1.26-4_amd64.deb

임시 작업 영역을 만들고 .deb 아카이브의 압축을 풉니 다.

root@host:~# mkdir fix_tar
root@host:~# cd fix_tar
root@host:~/fix_tar# ar x /var/cache/apt/archives/tar_1.26-4_amd64.deb

data.tar.gz 파일의 압축을 풀어 새 tar 바이너리를 찾으십시오.

root@host:~/fix_tar# ls -l
total 972
-rw-r--r-- 1 root root   2536 2012-02-03 12:20 control.tar.gz
-rw-r--r-- 1 root root 978996 2012-02-03 12:20 data.tar.gz
-rw-r--r-- 1 root root      4 2012-02-03 12:20 debian-binary
root@host:~/fix_tar# tar xzf data.tar.gz
root@host:~/fix_tar# find * -name tar
bin/tar
usr/share/doc/tar
usr/lib/mime/packages/tar

시스템의 기존 버전을 확인하십시오.

root@host:~/fix_tar# /bin/tar --version
tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

끔찍하게 잘못되어 다시 필요할 경우를 대비하여 이전 버전을 백업하십시오.

root@host:~/fix_tar# mv /bin/tar /bin/tar_1.20

새 사본을 제자리에 놓으십시오.

root@host:~/fix_tar# mv ./bin/tar /bin/tar

새 버전을 확인하십시오.

root@host:~/fix_tar# /bin/tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

끝났습니다! 🙂

그런 다음 다른 것을 계속 수행 할 수있었습니다.

root@host:~# aptitude update
root@host:~# aptitude safe-upgrade

답변

다른 컴퓨터 (다른 컴퓨터)에 편리한 최신 버전의 tar가 있습니까?
그렇다면, 단지 scp그것 /usr/local/bin, 가정 /usr/local/bin선행 일반 tar명령 경로한다. 그런 다음 업그레이드 할 수 있습니다.

apt-get install tar

답변

tar를 / var / cache에서 사용 가능한 새 버전으로 바꾸는 것은 완전히 나를 위해 일했습니다. 소스 목록을 수정하고 웹 민이 업그레이드를 시도하게함으로써 어리석은 짓을 한 후 새로운 패키지를 설치할 수 있도록 데비안 스퀴즈 설치를 수정하는 방법을 알아 내려고 오랜 시간을 보냈습니다 (나쁜 실수). 당신들로부터 포인트 답변에 직접 감사드립니다.