1

The following error is being encountered:

Atteint http://mg.archive.ubuntu.com trusty-backports/restricted Translation-en
Atteint http://mg.archive.ubuntu.com trusty-backports/universe Translation-en  
2 964 ko réceptionnés en 24s (121 ko/s)                                        
W: Impossible de récupérer http://mg.archive.ubuntu.com/ubuntu/dists/trusty/Release  Impossible de trouver l'entrée « multiverse/binary-amd64/Packages » attendue dans le fichier « Release » :  ligne non valable dans sources.list ou fichier corrompu

E: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.

command used:

apt-get update

source.list:

root@NOC-MONITORING:~# 
root@NOC-MONITORING:~# ls /etc/apt/sources.list.d/
root@NOC-MONITORING:~# cat /etc/apt/sources.list
deb http://mg.archive.ubuntu.com/ubuntu/ trusty main multiverse restricted universe
deb http://mg.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mg.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mg.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu trusty partner
deb http://extras.ubuntu.com/ubuntu trusty main
root@NOC-MONITORING:~# 

rm /var/lib/apt/lists/* -vf then apt-get update

didn't solved it

Lita
  • 11
  • 4

1 Answers1

1

Your repository is out of date.

Via the GUI

  1. Open the software center
  2. Edit > Software Sources...
  3. Find Download from and select Main Server from the drop down list
  4. Close out of the software center
  5. Do a sudo apt-get update

Via the CLI

Edit your /etc/apt/sources.list to reflect this:

deb http://archive.ubuntu.com/ubuntu/ trusty main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu trusty partner
deb http://extras.ubuntu.com/ubuntu trusty main

Some of the mirrors break. I live in Pakistan, and the mirror here hasn't worked for years. I use the Main Server myself.

Amin Shah Gilani
  • 289
  • 1
  • 10
  • Since it is an ubuntu server, i can only update from command line (/etc/apt/sources.list). i've try with mirrors: us, fr ,mg and i have the same result. – Lita May 05 '15 at 03:46
  • @Lita sudo perl -pe 's/^(deb\shttp:\/\/)mg\./$1/g;' -i /etc/apt/sources.list – A.B. May 05 '15 at 09:05
  • @Lita, I've updated the answer with instructions on how to edit the /etc/apt/sources.list. – Amin Shah Gilani May 05 '15 at 10:43
  • @amingilani Still the same error..., i've also tryed with fresh install of Trusty Tahr and i have the same error. are you on trusty Tahr ? if so, could you try an apt-get update? – Lita May 05 '15 at 18:51