将tar包降级为特定版本

时间:2017-11-12 13:52:17

标签: ubuntu

逗人,

在Ubuntu / Linux下我想降级" tar"包装从1.27-1版本到1.26ver。

每个apt-cache showpkg tar我有:

Package: tar
Versions: 
1.27.1-1ubuntu0.1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages.gz) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages.gz) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages.gz
                  MD5: 48033bf96442788d1f697785773ad9bb

1.27.1-1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages.gz)
 Description Language: 
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages.gz
                  MD5: 48033bf96442788d1f697785773ad9bb


Reverse Depends: 
  dpkg,tar 1.23
  dpkg,tar 1.23
  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) dpkg-dev (3 1.14.26) cpio (3 2.4.2-39) 
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) dpkg-dev (3 1.14.26) cpio (3 2.4.2-39) 
Provides: 
1.27.1-1ubuntu0.1 - 
1.27.1-1 - 
Reverse Provides: 

我这样做

apt-get install tar=1.26
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '1.26' for 'tar' was not found

我需要帮助正确降级特定包的方法。根据Ubuntu文档:

sudo apt-get install [packagename] = [version]

我已经指定了要降级到1.26的版本。 如何正确降级到指定版本?

1 个答案:

答案 0 :(得分:0)

查看https://launchpad.net/ubuntu/+source/tar以了解您的分发版的可用tar版本。您可以在https://launchpad.net/ubuntu/+archive/primary/+files/tar_1.26-4ubuntu1.1_i386.debhttps://launchpad.net/ubuntu/+archive/primary/+files/tar_1.26-4ubuntu1.1_amd64.deb找到tar 2.16版本,具体取决于您的架构。

下载.deb文件并尝试使用 db.transfer_orders.aggregate([ { $match: { "request_timestamp": { $gte: ISODate("2017-10-00T00:00:00.000Z") }, "request_timestamp": { $lt: ISODate("2017-10-12T00:00:00.000Z") }, "purpose": "POSITIONING" } }, { $unwind: "$adjustments" }, { $group: { _id: null, totalChangeQty: { $sum: "$adjustments.change_in_quantity"} } }, { $project: { _id: 0, "adjusted_quantity": "$totalChangeQty" } } ])

进行安装

我希望你不会遇到不满意的依赖问题。