‘apt-get install’ 期間的“tar: unrecognized option –warning”
我剛剛
apt-get upgrade
在我的 debian 5 vps 上執行,我得到了這個錯誤:焦油:無法辨識的選項 `–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
是答案,但(驚喜)tar
不能以通常的方式升級,因為dpkg
需要 1.23 或更高版本才能解壓縮並安裝最新的tar
deb。dpkg
確實需要一個明確的依賴關係,以確保在安裝更高版本時,dpkg
首先安裝最新tar
版本,但我想以不受支持的方式組合不同的測試和不穩定的版本是有風險的。這仍然是不可取的,這似乎是削弱系統的不幸方式。我的第一個想法是
tar
在 GNU 項目中查找最新的二進製文件,但不幸的是,他們只有原始碼下載,如果(像我一樣)您沒有安裝各種編譯工具,這將無濟於事。如果您從packages.debian.org
tar
下載最新的二進製文件.deb
以匹配您的系統並將其放到某個臨時位置(只是為了整潔),您應該能夠使用命令進入其中,例如在我的例子中。 然後使用類似的命令解壓縮生成的文件,使用您現有的早期版本,只要您不嘗試做任何愚蠢的事情,例如使用直到版本 1.23 才可用的參數,它應該可以工作。:) 這將讓您獲得二進製文件,該二進製文件(在 data.tar.gz 文件中)可能位於. 完成此操作後,我將該二進製文件的路徑添加到前面ar``ar x tar_1.26-2_amd64.deb
data.tar.gz``tar zxvf data.tar.gz``tar``--warning``tar``bin/tar
PATH
我的 shell 中的變數,在我的 bash shell 中可以使用 command 完成export PATH=/root/temp/bin:$PATH
,但是調整路徑以適應新tar
二進製文件現在所在的位置。之後,執行正常會產生dpkg --install tar_1.26-2_amd64.deb
奇蹟,因為它dpkg
會先在路徑中查找最新的二進製文件,然後再在正常路徑tar
中找到舊版本。bin