我当前的 tar 版本是
p@p-ubuntu:~/ba/tar-1.25$ sudo apt-cache showpkg tar
Package: tar
Versions:
1.27.1-1ubuntu0.1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
MD5: 48033bf96442788d1f697785773ad9bb
Description Language: en
File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
MD5: 48033bf96442788d1f697785773ad9bb
1.27.1-1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
MD5: 48033bf96442788d1f697785773ad9bb
Description Language: en
File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
MD5: 48033bf96442788d1f697785773ad9bb
Reverse Depends:
dpkg,tar 1.23
tar:i386,tar
dpkg,tar 1.23
tar:i386,tar
vfu,tar 1.20-1
pristine-tar,tar 1.27-3
patool,tar 1.26
dump,tar 1.13.92-3
amanda-common,tar 1.12
dpkg,tar 1.23
backuppc,tar 1.13
Dependencies:
1.27.1-1ubuntu0.1 - libacl1 (2 2.2.51-8) libc6 (2 2.17) libselinux1 (2 1.32) bzip2 (0 (null)) ncompress (0 (null)) xz-utils (0 (null)) tar-scripts (0 (null)) cpio (1 2.4.2-38) cpio:i386 (1 2.4.2-38) dpkg-dev (3 1.14.26) dpkg-dev:i386 (3 1.14.26) cpio (3 2.4.2-39) cpio:i386 (3 2.4.2-39) tar:i386 (0 (null))
1.27.1-1 - libacl1 (2 2.2.51-8) libc6 (2 2.17) libselinux1 (2 1.32) bzip2 (0 (null)) ncompress (0 (null)) xz-utils (0 (null)) tar-scripts (0 (null)) cpio (1 2.4.2-38) cpio:i386 (1 2.4.2-38) dpkg-dev (3 1.14.26) dpkg-dev:i386 (3 1.14.26) cpio (3 2.4.2-39) cpio:i386 (3 2.4.2-39) tar:i386 (0 (null))
Provides:
1.27.1-1ubuntu0.1 - tar:i386
1.27.1-1 - tar:i386
Reverse Provides:
tar:i386 1.27.1-1ubuntu0.1
tar:i386 1.27.1-1
现在,我需要安装 1.25 版的 tar。不确定如何找到确切的版本号。我试过了,但没有用。
p@p-ubuntu:~/ba/tar-1.25$ sudo apt-get install tar=1.26-4ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1.26-4ubuntu1' for 'tar' was not found