Não é possível instalar o servidor openssh

1
sudo apt-get install openssh-server

Eu recebi este erro:

Err mirror://mirrors.ubuntu.com/mirrors.txt/ precise-updates/main openssh-server i386 1:5.9p1-5ubuntu1.4
  No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found  [Mirror: ]
Err mirror://mirrors.ubuntu.com/mirrors.txt/ precise/main ssh-import-id all 2.10-0ubuntu1
  No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found  [Mirror: ]
Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/main/o/openssh/openssh-server_5.9p1-5ubuntu1.4_i386.deb  No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found  [Mirror: ]
Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/pool/main/s/ssh-import-id/ssh-import-id_2.10-0ubuntu1_all.deb  No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found  [Mirror: ]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Meu /etc/apt/sources.list conteúdo é:

deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse

Por que e como corrigir isso?

    
por cioby23 19.05.2014 / 09:10

1 resposta

1

Acho que seu problema pode estar relacionado a esse bug: link . Eu tentei usar o recurso de espelho no Ubuntu 14.04 também e deu alguns erros.

Você pode fazer o backup de seu arquivo /etc/apt/sources.list

sudo mv /etc/apt/sources.list /etc/apt/sources.list.orig

e crie um novo com o seguinte conteúdo. Substitua o ro.archive.ubuntu.com pelas iniciais do seu país (por exemplo, fr, de, us etc).

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://ro.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://ro.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse 
deb http://ro.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse 
deb http://ro.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse 
deb http://ro.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu precise partner

###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu precise main

Em seguida, execute:

sudo apt-get update
sudo apt-get install openssh-server
    
por cioby23 20.05.2014 / 10:41