Sempre recebendo erro durante o apt-get install

0

Sempre que tento fazer o apt-get install / upgrade, sempre recebo uma série de erros, como abaixo. É por causa de algumas entradas incorretas no arquivo /etc/apt/sources.list. Se sim, como corrigi-lo?

$ sudo apt-get -f install 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following package was automatically installed and is no longer required:
      linux-image-extra-3.8.0-30-generic
    Use 'apt-get autoremove' to remove it.
    The following extra packages will be installed:
      libjavascriptcoregtk-1.0-0 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libxerces-c3.1
    Suggested packages:
      gstreamer1.0-ffmpeg
    The following NEW packages will be installed:
      libjavascriptcoregtk-1.0-0 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libxerces-c3.1
    0 upgraded, 4 newly installed, 0 to remove and 7 not upgraded.
    1 not fully installed or removed.
    Need to get 11.7 MB of archives.
    After this operation, 39.9 MB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    WARNING: The following packages cannot be authenticated!
      libxerces-c3.1 libjavascriptcoregtk-1.0-0 libwebkitgtk-1.0-common libwebkitgtk-1.0-0
    Install these packages without verification [y/N]? Y
    Err http://in.archive.ubuntu.com/ubuntu/ raring/universe libxerces-c3.1 amd64 3.1.1-3
      404  Not Found [IP: 91.189.91.23 80]
    Err http://in.archive.ubuntu.com/ubuntu/ raring/main libjavascriptcoregtk-1.0-0 amd64 1.10.2-0ubuntu1
      404  Not Found [IP: 91.189.91.23 80]
    Err http://in.archive.ubuntu.com/ubuntu/ raring/main libwebkitgtk-1.0-common all 1.10.2-0ubuntu1
      404  Not Found [IP: 91.189.91.23 80]
    Err http://in.archive.ubuntu.com/ubuntu/ raring/main libwebkitgtk-1.0-0 amd64 1.10.2-0ubuntu1
      404  Not Found [IP: 91.189.91.23 80]
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/x/xerces-c/libxerces-c3.1_3.1.1-3_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/w/webkit/libjavascriptcoregtk-1.0-0_1.10.2-0ubuntu1_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/w/webkit/libwebkitgtk-1.0-common_1.10.2-0ubuntu1_all.deb  404  Not Found [IP: 91.189.91.23 80]
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/w/webkit/libwebkitgtk-1.0-0_1.10.2-0ubuntu1_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    
por Guru 25.07.2015 / 14:35

1 resposta

1

  1. Primeiro, certifique-se de ter instalado os aplicativos gksu e leafpad

    Inicie uma janela de terminal.

Digite (ou copie / cole):

sudo apt-get install gksu leafpad

Pressione Enter e envie sua senha. Por favor, note que a senha permanecerá invisível, nem os asteriscos serão mostrados, o que é normal.

2. Em seguida, remova todas as fontes que você tem agora:

Inicie uma janela de terminal.

Digite (use copiar / colar para evitar erros):

sudo rm -vf /etc/apt/sources.list.d/*.list && sudo rm -vf /etc/apt/sources.list

Pressione Enter. Digite sua senha quando solicitado; isso permanecerá totalmente invisível, nem os asteriscos aparecerão, o que é normal.

  1. Crie uma nova lista de fontes:

Copie / cole o seguinte comando no terminal:

gksudo leafpad /etc/apt/sources.list

Pressione Enter.

Agora copie / cole todo o texto abaixo, nesse arquivo de texto vazio:

## SOURCES LIST FOR UBUNTU 14.04 LTS TRUSTY TAHR
## ALSO FOR XUBUNTU 14.04, LUBUNTU 14.04
## AND KUBUNTU 14.04
## From: http://sites.google.com/site/easylinuxtipsproject
## This list is for the Main server; you might want to select a
## faster mirror server closer to you, with Software & Updates.
## Only fit for 14.04 LTS Trusty Tahr!
#
## SOURCES FOR ORDINARY SOFTWARE:
deb http://archive.ubuntu.com/ubuntu trusty main
deb http://archive.ubuntu.com/ubuntu trusty-updates main
deb http://archive.ubuntu.com/ubuntu trusty restricted
deb http://archive.ubuntu.com/ubuntu trusty-updates restricted
deb http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-updates universe
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
#
## SOURCES FOR SECURITY UPDATES:
deb http://archive.ubuntu.com/ubuntu trusty-security main
deb http://archive.ubuntu.com/ubuntu trusty-security restricted
deb http://archive.ubuntu.com/ubuntu trusty-security universe
deb http://archive.ubuntu.com/ubuntu trusty-security multiverse
#
## BACKPORTS SOURCES (WITH LOWERED PRIORITY):
deb http://archive.ubuntu.com/ubuntu trusty-backports main
deb http://archive.ubuntu.com/ubuntu trusty-backports restricted
deb http://archive.ubuntu.com/ubuntu trusty-backports universe
deb http://archive.ubuntu.com/ubuntu trusty-backports multiverse
#
## PARTNER SOURCE (FOR SOFTWARE FROM
## BUSINESS PARTNERS OF CANONICAL):
deb http://archive.canonical.com/ubuntu trusty partner
#
## INDEPENDENT SOURCE (FOR SOFTWARE
## FROM THIRD-PARTY DEVELOPERS):
deb http://extras.ubuntu.com/ubuntu trusty main
#
## SOURCE FOR WEB BROWSER GOOGLE CHROME
## (DISABLED BY DEFAULT):
## Only enable it when you've installed Google Chrome!
## You can enable it in the application Software & Updates.
# deb http://dl.google.com/linux/chrome/deb/ stable main

Salve o arquivo de texto e feche-o.

  1. Agora recarregue as informações da lista de fontes:

No terminal:

sudo apt-get update

Pressione Enter e envie sua senha. Por favor, note que a senha permanecerá invisível, nem os asteriscos serão mostrados, o que é normal.

Você terminou!

    
por Nouri Yacine 25.07.2015 / 14:53