Atualização não funciona no Ubuntu 14.04.4 LTS

0

Quando eu executo o comando update usando:

sudo apt-get update

estou recebendo um erro dizendo:

Ign http://archive.ubuntu.com trusty/universe Translation-en_IN
Reading package lists... Done 
W: Failed to fetch http://archive.ubuntu.com|security.ubuntu.com/ubuntu/dists/trusty-security/InRelease  

W: Failed to fetch http://archive.ubuntu.com|security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'archive.ubuntu.com|security.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

Minha versão do Ubuntu é o Ubuntu 14.04.4 LTS

Eu tentei muito para consertar isso usando diferentes fóruns, mas tudo em vão.

Por favor, sugira como posso corrigi-lo.

Conteúdo de /etc/apt/sources.list

#deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## Major bug fix updates produced after the final release of the
## distribution.
# deb http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty-updates main restricted
# deb-src http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty-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://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty universe
# deb-src http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty universe
# deb http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty-updates universe
# deb-src http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty-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://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty multiverse
# deb-src http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty multiverse
# deb http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty-updates multiverse
# deb-src http://in.archive.ubuntu.com|security.ubuntu.com/ubuntu/ trusty-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://archive.ubuntu.com|security.ubuntu.com/ubuntu trusty-security main restricted
deb http://archive.ubuntu.com|security.ubuntu.com/ubuntu trusty-security universe
deb http://archive.ubuntu.com|security.ubuntu.com/ubuntu trusty-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 trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main
deb http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
    
por ramkrishna 30.06.2016 / 17:06

1 resposta

1

Você tem um problema com o arquivo /etc/apt/sources.list . Nas linhas de fontes, você não deve ter nenhuma linha com in.archive.ubuntu.com|security.ubuntu.com .

Salve um backup do seu arquivo de origem com:

cp -a /etc/apt/sources.list /etc/apt/sources.list.bak

Em seguida, use sed para corrigir seu arquivo de fontes atual:

sed -i 's/in.archive.ubuntu.com|security.ubuntu.com/in.archive.ubuntu.com/g' /etc/apt/sources.list

seguido por

sed -i 's/archive.ubuntu.com|security.ubuntu.com/security.ubuntu.com/g' /etc/apt/sources.list

Seus comandos apt-get devem funcionar corretamente depois disso.

Na verdade, eu acabei de notar que todos os espelhos da Índia (in.archive.ubuntu.com) estão comentados, esses comandos corrigiram essas entradas de qualquer maneira, mas eles não estão sendo usados.

O problema estava vindo das entradas incorretas referentes às atualizações de segurança. Você receberá atualizações de segurança agora quando você atualizar, e o resto de suas atualizações virão dos espelhos principais do Ubuntu, pode ser mais rápido atualizar de seus espelhos locais, que são as entradas in.archive.ubuntu.com .

    
por Arronical 30.06.2016 / 17:42