Não é possível baixar libprotobuf8 de confiança com aptidão

0

Estou executando o Ubuntu 17.04, "zesty".

Eu preciso instalar a versão 8 do Google Protocol Buffer.

Eu posso encontrar o pacote em link

As instruções indicam que o aptitude é a maneira preferida de baixar e instalar o pacote.

Adicionei a seguinte linha ao final de /etc/apt/sources.list :

deb http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf trusty main 

Então corro o aptitude:

$ sudo aptitude install libprotobuf8=libprotobuf8_2.5.0-9ubuntu1_amd64.deb
Unable to find a version "libprotobuf8_2.5.0-9ubuntu1_amd64.deb" for the package "libprotobuf8"
Unable to apply some actions, aborting

$ sudo aptitude install libprotobuf8=2.5.0-9ubuntu1
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

O uso do apt-get também não funciona:

$ sudo apt-get install libprotobuf8=2.5.0-9ubuntu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Can't find a source to download version '2.5.0-9ubuntu1' of 'libprotobuf8:amd64'

Quando eu corro sudo apt-get update

vejo

...
Err:3 http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf trusty/main amd64 Packages                                
  404  Not Found
...

W: The repository 'http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf trusty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf/dists/trusty/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

No entanto, /var/lib/dpkg/status mostra:

Package: libprotobuf8
Status: install ok config-files
Section: libs
Installed-Size: 1083
Architecture: amd64
Multi-Arch: same
Source: protobuf
Version: 2.5.0-9ubuntu1
Config-Version: 2.5.0-9ubuntu1
Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.3), zlib1g (>= 1:1.1.4)
 This package contains the runtime library needed for C++ applications.
Homepage: https://code.google.com/p/protobuf/
Original-Maintainer: Robert S. Edmonds <[email protected]>

No entanto, não consigo encontrar libprotobuf.so.8 em nenhum lugar do sistema.

O que estou fazendo de errado?

    
por empty 31.08.2017 / 01:13

2 respostas

1

  1. libprotobuf8 já está em repositórios do Ubuntu, você pode simplesmente instalá-lo com o seu gerenciador de pacotes, apt-get ou aptitude. Ex.

    sudo apt-get install libprotobuf8

  2. Essa fonte que você adicionou é basicamente inútil ou não é necessária, eu a removeria

  3. Ao especificar uma versão do pacote, basta usar a versão, não o nome & amp; certamente não o nome .deb. Ex.

    sudo aptitude install libprotobuf8=2.5.0-9ubuntu1

por doug 31.08.2017 / 01:47
1

Não foi possível instalar as respostas sugeridas, então baixei o arquivo de link

e

sudo apt install ./libprotobuf8_2.5.0-9ubuntu1_amd64.deb
    
por empty 01.09.2017 / 01:56