Responder 
 
Avaliação do Tópico:
  • 0 Votos - 0 Média
  • 1
  • 2
  • 3
  • 4
  • 5
debpartial-mirror erro
25/07/2008, 17:18
Resposta: #1
debpartial-mirror erro
Boa Tarde,

pessoal

tenho instalado um debian 4.0r3 e fiz a instalação do debpartial-mirror via apt-get, apt-get install debpartial-mirror até aii tudo ok e configurei em /etc o debpartial-mirror.conf dessa forma

;;
;; debpartial-mirror configuration file.
;;

[GLOBAL]

;; Show debug information?
;debug = DEBUG

;; Mirror destination directory
mirror_dir = /mnt/mirror-custom/
;; Which architectures should I download?
architectures = i386

;; What should I look for, by default?
components = main
distributions = etch

;; What should I get?
get_suggests = true
get_recommends = true
get_provides = true
get_sources = false
get_packages = true

;; Here is our first backend. It mirrors a subset of packages from the
;; Debian official repositories.
[etch]

;; Where do we get the packages from?
server = http://ftp.debian.org/debian/

;; Since we specify components and distributions in this section, what we
;; specify here overrides the settings in [DEFAULT].
components = main contrib
distributions = etch

;; Only get a subset of the packages in this source.
##filter = subsection:base priority:important
filter = main:*:* contrib:*:* main/debian-installer:*:*
;; And get the source packages as well for this backend.
get_sources = false

[etch-security]
;; also get security updates for sarge
server = http://security.debian.org/
components = main contrib
distributions = etch/updates
##filter = subsection:base priority:important
filter = main:*:* contrib:*:* main/debian-installer:*:*
resolve_deps_using = etch

;; Here is another backend. This one will get all the debian-installer
;; packages from the unstable distribution (sid).
;;[sid_debian-installer]
;;server = http://ftp.debian.org/debian
;;components = main/debian-installer
;;distributions = sid

;; You can use debian-cd tasks to include or exclude a subset of the
;; packages.
;;filter = include-from:/usr/share/debian-cd/tasks/base-sarge exclude-from:/usr/share/debian-cd/tasks/exclude-sarge

;; Let's only get the source packages, not the binary ones.
#get_sources = false
;;get_packages = false

;; This backend is a local repository, as you can see from the use of the
;; file:// URL. The idea is that we have a set of custom-made packages
;; stored on the local computer.
;;[local_custom_packages]
;;server = file:///var/lib/custom-packages
;;components = main
;;distributions = local

;; These packages depend on Debian official packages. We will use the
;; "sarge" backend (above) to satisfy these dependencies.
;;resolve_deps_using = sarge

;; Here is a merging backend. It uses the backends we specify above to
;; create a custom distribution that provides all the packages in each
;; backend. This will be created using hard links to the package files
;; in each backend directory.
;;[my_custom_debian_distro]
;;backends = sarge sid_debian-installer local_custom_packages
;;name = sarge-with-sids-installer-and-some-other-stuff
;;filter_sarge = section:base

;;[backports]
;;server = http://backports.org/debian
;; note: sarge is not yet present at backports.org
;;distributions=woody
;;components = all
;; backports.org defines each package as a component, so you can specify
;; individual packages only:
;;components = mailman spamassassin postfix postgrey
;;resolve_deps_using = sarge

;;[volatile]
;;server=http://volatile.debian.net/debian-volatile
;;distributions=sarge/volatile
;;components=main
;;resolve_deps_using = sarge
;;only grab the clamav package (and things that it depends on)
;;filter=name:clamav

so que da o seguinte erro quando executo o debpartial-mirror

Traceback (most recent call last):
File "/usr/bin/debpartial-mirror", line 246, in ?
main()
File "/usr/bin/debpartial-mirror", line 183, in main
cnf = Config.Config(conffile)
File "/var/lib/python-support/python2.4/debpartial_mirror/Config.py", line 291, in __init__
sectionObj = section_type(self, section)
File "/var/lib/python-support/python2.4/debpartial_mirror/Config.py", line 91, in __init__
value = self.__cast_option(item, value)
File "/var/lib/python-support/python2.4/debpartial_mirror/Config.py", line 163, in __cast_option
key, val = opt.split(':')
ValueError: too many values to unpack

percebi que o problema é na linha filter = , porque quando eu deixo

filter = subsection:base priority:important

funciona normal

mas quando mudo para

filter = main:*:* contrib:*:* main/debian-installer:*:*

que é a forma que todo mundo usa nos tutoriais pela internet da o erro que comentei em cima

gostaria de saber porque da esse erro e se tem outra forma de baixar a distro toda ou as possiveis configurações que posso fazer nesse filter porque não achei na internet como fazer

obrigado
Visitar o website do usuário Encontrar todas as respostas deste usuário
Citar esta mensagem em uma resposta
27/07/2008, 03:06
Resposta: #2
 
Tópico movido para sala de Redes para melhor organização do fórum.

[Imagem: debianuseruserbarsp1.png]
[Imagem: gnomeuserqj9.jpg]
Encontrar todas as respostas deste usuário
Citar esta mensagem em uma resposta
Responder 


Ir ao Fórum:


Usuários visualizando este tópico: 1 Visitantes

Entre em Contato | Fórum Debian | Voltar ao Topo | Voltar ao Conteúdo | Modo Leve (Arquivo) | Feeds RSS