Por que o libsnmp-dev não consegue instalar em 16.04? Como posso resolver as dependências?

0

Estou usando uma Amazon AMI fornecida pela Canonical como uma linha de base para uma nova AMI, mas quando tento instalar o pacote libsnmp-dev (que eu preciso para ter acesso a net-snmp-config por algum motivo, mesmo embora você certamente não precise desenvolver código SNMP para configurar um usuário e uma chave SNMP), tudo explode com dependências inexistentes.

A AMI está configurada com qualquer repos padrão em /etc/apt/sources.list . Se encontrar libsnmp-dev sem dificuldade, mas todas as suas dependências falharem com erros 404 - e olhando para os repositórios em questão, todos eles têm pacotes com o nome correto, mas números de versão diferentes. Eu sou novo no Ubuntu, e até agora praticamente odiava por causa desse problema. Não é o ponto inteiro de sistemas de gerenciamento de pacotes para evitar esses tipos de problemas.

  1. O que preciso fazer para resolver as dependências?
  2. Por que os repositórios oficiais do Ubuntu estão disponibilizando versões de pacotes para os quais eles não possuem dependências válidas?

Eu desperdicei a melhor parte de um dia de 8 horas tentando instalar esse pequeno utilitário de linha de comando.

# apt-get install libsnmp-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libc-dev-bin libc6-dev libpci-dev libsensors4-dev libssl-dev libssl-doc libudev-dev libwrap0-dev linux-libc-dev
  manpages-dev zlib1g-dev
Suggested packages:
  glibc-doc
The following NEW packages will be installed:
  libc-dev-bin libc6-dev libpci-dev libsensors4-dev libsnmp-dev libssl-dev libssl-doc libudev-dev libwrap0-dev
  linux-libc-dev manpages-dev zlib1g-dev
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,264 kB/8,949 kB of archives.
After this operation, 42.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-103.126
  404  Not Found [IP: 34.229.132.181 80]
Ign:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libssl-dev amd64 1.0.2g-1ubuntu4.9
Ign:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libssl-doc all 1.0.2g-1ubuntu4.9
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-103.126
  404  Not Found [IP: 34.229.132.181 80]
Err:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libssl-dev amd64 1.0.2g-1ubuntu4.9
  404  Not Found [IP: 34.229.132.181 80]
Err:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libssl-doc all 1.0.2g-1ubuntu4.9
  404  Not Found [IP: 34.229.132.181 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.4.0-103.126_amd64.deb  404  Not Found [IP: 34.229.132.181 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.2g-1ubuntu4.9_amd64.deb  404  Not Found [IP: 34.229.132.181 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-doc_1.0.2g-1ubuntu4.9_all.deb  404  Not Found [IP: 34.229.132.181 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Minha lista de repos:

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

O AMI é simplesmente o mais recente 16.04 AMI lançado pela Canonical: ami-3dec9947 .

    
por Franklin Roosevelt 20.12.2017 / 01:59

0 respostas