Como remover versões específicas do pacote usando o aptitude

0

Eu tenho um pequeno problema com libc6 package. Existe alguma saída:

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 <[email protected]>
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

Suponho que preciso desinstalar a versão 2.18-4 sem remover dependências e versões mais antigas do pacote. Então, como fazer isso?

    
por Everv0id 20.04.2014 / 18:06

1 resposta

1

Você pode usar apt-get para instalar uma versão específica do pacote, desde que esteja em um arquivo que o apt saiba. Na% man_de% manpage:

apt-get

Por exemplo, você poderia fazer:

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). Note que você pode precisar fazer alguma resolução de dependência por conta própria nesse caso, mas se houver algum problema, o apt-get informará o que está causando isso. No meu sistema 11.10, eu precisaria fazer o seguinte para que isso funcionasse:

sudo apt-get install apache2=2.2.20-1ubuntu1 '

Resposta original: Como instalar pacotes específicos do Ubuntu, com versão exata?

    
por Cody 20.04.2014 / 18:25