Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
sudo apt-get install openssh-server

I got this error:

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?

My /etc/apt/sources.list content is:

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

Why and how to fix it ?

share|improve this question
1  
can you post the contents of the file /etc/apt/sources.list ? – chaybs May 19 '14 at 7:37
    
Follow this answer: askubuntu.com/a/91595/224082 – user224082 May 19 '14 at 8:32
    
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 – user284234 May 19 '14 at 8:33
    
If you type in your browser mirrors.ubuntu.com/mirrors.txt do you see the list of mirrors ? – cioby23 May 20 '14 at 8:07
up vote 1 down vote accepted

I think your issue might be related to this bug: https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1020995. I have tried to use the mirror feature on Ubuntu 14.04 also and gave some errors.

You can backup your /etc/apt/sources.list file

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

and create a new one with following content. Replace the ro.archive.ubuntu.com with initials from your country (e.g 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

Then run:

sudo apt-get update
sudo apt-get install openssh-server
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.