Erro no apt-get update (Ubuntu 8.04) [RESOLVIDO]

1. Erro no apt-get update (Ubuntu 8.04) [RESOLVIDO]

Emiliano
artyfex

(usa Ubuntu)

Enviado em 01/10/2008 - 16:46h

Olá pessoal, ao executar o comando #sudo apt-get update, aparecem as seguintes mensagens no meu console:

W: Falha ao buscar cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080702.1)]/dists/hardy/main/binary-amd64/Packages.gz Por favor use o apt-cdrom para fazer com que este CD-ROM seja reconhecido pelo APT. apt-get update não pode ser usado para adicionar novos CD-ROMs

W: Falha ao buscar cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080702.1)]/dists/hardy/restricted/binary-amd64/Packages.gz Por favor use o apt-cdrom para fazer com que este CD-ROM seja reconhecido pelo APT. apt-get update não pode ser usado para adicionar novos CD-ROMs

E: Alguns arquivos de índice falharam para baixar, eles foram ignorados ou os antigos foram usados no lugar.

Já executei o comando #sudo apt-cdrom e as seguintes mensagens aparecem:

apt 0.7.9ubuntu17 para amd64 compilado em Apr 22 2008 15:20:49
Usage: apt-cdrom [options] command

apt-cdrom is a tool to add CDROM's to APT's source list. The
CDROM mount point and device information is taken from apt.conf
and /etc/fstab.

Commands:
add - Add a CDROM
ident - Report the identity of a CDROM

Options:
-h This help text
-d CD-ROM mount point
-r Rename a recognized CD-ROM
-m No mounting
-f Fast mode, don't check package files
-a Thorough scan mode
-c=? Read this configuration file
-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See fstab(5)

A partir daí eu não sei mais o que fazer...
Alguém sabe o que está havendo e poderia me ajudar a corrigir isso?
Obrigado.


  


2. apt-cdrom

Wagner S. Ghidini
WSG

(usa Debian)

Enviado em 01/10/2008 - 17:19h

1) primeiro comente as linhas do sources.lists que ta dando problema.

abra o sources.list do apt:
sudo nano /etc/apt/sources.list

comente esta linha(coloque # na frente), deixe-a assim:
#deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20080804-15:10]/ etch contrib main

Obs: No meu caso a linha é um pouco diferente pois uso Debian. Mas em todos os casos começa com "deb cdrom:".

2)Salve o arquivo apertando ctrl+o, aperte <enter> e feche com ctrl+x

3)Adicione o cdrom pelo apt-cdrom:
sudo apt-cdrom add

ai ele vai pedir para colocar o cdrom no leitor e apertar <enter>.

4)Dai é só atualizar a lista com:
sudo apt-get update

Espero ter ajudado =D


3. Re: Erro no apt-get update (Ubuntu 8.04) [RESOLVIDO]

Emiliano
artyfex

(usa Ubuntu)

Enviado em 01/10/2008 - 21:16h

Rapaz, fiz exatamente como vc recomendou, ao digitar sudo nano /etc/apt/sources.list aparece a seguinte mensagem:

deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080702.1)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://br.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://br.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy universe
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-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://br.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://br.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe 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 hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://packages.medibuntu.org/ hardy free non-free

nas linhas seguintes eu digitei:

#deb cdrom: [Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080702.1)]/dists/hardy/main/binary-amd64/Packages.gz
#deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080702.1)]/dists/hardy/restricted/binary-amd64/Packages.gz

salvei e fechei como aconselhado, porém ao dar o upt-get update aquelas primeiras mensagens continuam a aparecer...

Eu sou novo no linux e não entendo bem muitas coisas, quando ele pede para montar o cd-rom significa que ele supõe que a atualização virá do cd-rom? Outra coisa, o que é esse nano /etc/apt/sources.list?

Obrigado de novo.








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts