Instalando o Mercurial no Debian usando o apt-get

1

Eu estou tentando instalar o Mercurial usando o apt-get em um servidor web rodando Debian. Eu preferiria ter a última versão estável do Mercurial, mas ficaria feliz com qualquer coisa razoavelmente recente. Eu tentei digitar o comando sudo apt-get install mercurial e recebi a seguinte resposta:

Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
  mercurial: Depends: libc6 (>= 2.4) but 2.3.6.ds1-13etch10 is to be installed
             Depends: python (>= 2.5) but 2.4.4-2 is to be installed
             Depends: python-support (>= 0.90.0) but 0.5.6 is to be installed
             Depends: mercurial-common (= 1.7.5-1) but it is not going to be installed
  trac: Depends: python-genshi but it is not installable
W: Couldn't stat source package list http://debian.newdream.net etch/main Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.newdream.net etch/non-free Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.newdream.net etch/contrib Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://www.backports.org etch-backports/main Packages (/var/lib/apt/lists/www.backports.org_debian_dists_etch-backports_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/main Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/contrib Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/non-free Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu tentei executar sudo apt-get -f install e recebi mais alguns erros relacionados a estatísticas e uma sugestão para executar apt-get update . (Deixe-me saber se você precisa saber mais detalhes)

Eu tentei sudo apt-get update e recebi vários erros 404 seguidos por:

Reading package lists... Done
W: GPG error: http://debian.di.newdream.net etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8E4BD8EB613A210F
W: Couldn't stat source package list http://debian.newdream.net etch/main Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.newdream.net etch/non-free Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.newdream.net etch/contrib Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://www.backports.org etch-backports/main Packages (/var/lib/apt/lists/www.backports.org_debian_dists_etch-backports_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/main Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/contrib Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/non-free Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.newdream.net etch/main Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.newdream.net etch/non-free Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.newdream.net etch/contrib Packages (/var/lib/apt/lists/debian.newdream.net_dists_etch_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://www.backports.org etch-backports/main Packages (/var/lib/apt/lists/www.backports.org_debian_dists_etch-backports_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/main Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/contrib Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://volatile.debian.org etch/volatile/non-free Packages (/var/lib/apt/lists/volatile.debian.org_debian-volatile_dists_etch_volatile_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

Estou fazendo algo errado? Como posso instalar o Mercurial?

    
por Elias Zamaria 23.02.2011 / 05:32

2 respostas

1

Você está executando o Etch , que não é uma, mas duas versões desatualizadas. Etch foi removido de todos os espelhos oficiais. Além disso, o backports.org foi movido para o backports.debian.org e o volátil foi descontinuado.

Se você quer uma versão recente do Mercurial sem ter que compilar você mesmo, eu sugiro que você atualize o etch para o lenny, e então do lenny para o squeeze.

Também a partir do que você postou, notei isso "Depends: mercurial-common (= 1.7.5-1)" e essa é a versão da unstable. Que tipo de sistema de franken você está executando com ambos etch e sid misturados?

    
por 23.02.2011 / 05:51
0

Se você está recebendo essas mensagens enquanto faz uma 'atualização do apt-get', significa que o apt não é capaz de se conectar ou puxar de alguns dos repositórios em sua sources.list.

Isso pode ser causado por muitos fatores, mas o motivo mais provável é que os repositórios estão em manutenção e temporariamente indisponíveis.

Posso tentar mais tarde?

    
por 23.02.2011 / 05:36