Как удалить указанные версии пакета, используя aptitude

У меня небольшая проблема с пакетом libc6. Есть некоторый вывод:

root@xubuntu:/# aptitude versions libc6
Package libc6:                        
p   2.17-93ubuntu4  saucy   500 
H   2.18-4                  100 

root@xubuntu:/# aptitude show libc6
Package: libc6                           
State: partially installed
Automatically installed: no
Multi-Arch: same
Version: 2.18-4
Priority: required
Section: libs
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: amd64
Uncompressed Size: 10.5 M
Depends: libgcc1
Suggests: glibc-doc, debconf | debconf-2.0, locales
Conflicts: prelink (<= 0.0.20090311-1), prelink (<= 0.0.20090311-1), tzdata (< 2007k-1), tzdata (< 2007k-1), tzdata-etch, tzdata-etch
Breaks: hurd (< 1:0.5.git20140203-1), hurd (< 1:0.5.git20140203-1), locales (< 2.18), locales (< 2.18), locales-all (< 2.18), locales-all (< 2.18), lsb-core (<=
    3.2-27), lsb-core (<= 3.2-27), nscd (< 2.18), nscd (< 2.18), libc6 (!= 2.18-4)
Replaces: libc6-amd64, libc6-amd64, libc6 (< 2.18-4)
Provides: glibc-2.18-1
Description: Embedded GNU C Library: Shared libraries
 Contains the standard libraries that are used by nearly all programs on the system.     This package includes shared versions of the standard C library and the standard math library, as well as many others.
Homepage: http://www.eglibc.org

root@xubuntu:/# aptitude reinstall libc6
The following packages will be REINSTALLED:
  libc6 libc6:i386 
0 packages upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 26 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
E: I wasn't able to locate a file for the libc6 package. This might mean you need to manually fix this package.
E: I wasn't able to locate a file for the libc6 package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download

Полагаю, мне нужно удалить версию 2.18-4 без удаления зависимостей и более старой версии пакета. Итак, как это сделать?

0
задан 20 April 2014 в 20:06

1 ответ

Можно использовать apt-get для установки определенной версии пакета длинное, как это находится в архиве, настолько склонном, знает о. От apt-get страница справочника:

A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be located and selected for install. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name (stable, frozen, unstable).

, Например, Вы могли сделать:

sudo apt-get install apache2=2.2.20-1ubuntu1 Примечание, что Вы, возможно, должны сделать некоторое разрешение зависимости самостоятельно в этом случае, но если существуют какие-либо склонные проблемы - добираются, скажет Вам, что вызывает их. В моих 11,10 системах я должен был бы сделать следующее, чтобы заставить это работать:

sudo apt-get install apache2=2.2.20-1ubuntu1 \ apache2.2-common=2.2.20-1ubuntu1 \ apache2.2-bin=2.2.20-1ubuntu1 \ apache2-mpm-worker=2.2.20-1ubuntu1'

Исходный Ответ: , Как установить определенные пакеты Ubuntu с точной версией?

0
ответ дан 20 April 2014 в 20:06

Другие вопросы по тегам:

Похожие вопросы: