Re: Erro criando a jaula de empacotamento

Sergio Durigan Junior <[email protected]> Wed, 11 Jul 2018 22:01:44 -0400
Newsgroups gmane.linux.debian.devel.portuguese
Message-ID <[email protected]>
On Wednesday, July 11 2018, Vornei Augusto wrote:

> Olá para todos, boa noite! Tudo bem?

Olá Vornei,

> Estou tentando criar a jaula sid de empacotamento e não estou conseguindo, está acontecendo o seguinte erro:
> root@trinity:/# cdebootstrap sid /jaula-sid
> http://ftp.br.debian.org/debianP: Retrieving ReleaseP: Retrieving
> Release.gpgP: Validating ReleaseI: Good signature from "Debian Archive
> Automatic Signing Key (7.0/wheezy) <[email protected]>"I: Good
> signature from "Debian Archive Automatic Signing Key (8/jessie)
> <[email protected]>"I: Good signature from "Debian Archive
> Automatic Signing Key (9/stretch) <[email protected]>"P: Parsing
> ReleaseP: Retrieving Packages.xzP: Validating Packages.xzP: Parsing
> PackagesW: parser_rfc822: Iek! Don't find end of value!E: Internal
> error: downloadroot@trinity:/# ls -al
> Ao verificar a jaula-sid, existe apenas um diretório var.Alguém sabe dizer porque do erro?

O cdebootstrap é um programa escrito em C que faz mais ou menos a mesma
coisa que o debootstrap faz.  Essa linha que tá dando erro tá dizendo
que algo ruim tá acontecendo no arquivo parser_rfc822 (da biblioteca
libdebian-installer).  Se a gente der uma olhada no código dessa
biblioteca, que está em:

  https://salsa.debian.org/installer-team/libdebian-installer

A gente vai ver que o arquivo parser_rfc822.c:

  https://salsa.debian.org/installer-team/libdebian-installer/blob/master/src/parser_rfc822.c

Tem uma função (di_parser_rfc822_read) que emite exatamente esse erro
aí:

  https://salsa.debian.org/installer-team/libdebian-installer/blob/master/src/parser_rfc822.c#L127

Analisando a função, podemos ver que o problema é que o tamanho do campo
que está sendo lido é maior do que READSIZE, que é o tamanho máximo
permitido pela biblioteca.  READSIZE, no momento em que escrevo, é
definido como 16384.

Portanto, o que está acontecendo é que algum campo de algum pacote tem
mais do que 16384 caracteres, o que está fazendo a leitura falhar.

Dei uma pesquisada, e existe um bug de quase 10 anos a respeito desse
erro:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554444

Dado que não houve qualquer movimentação nesse bug desde a sua criação,
sugiro que você utilize o debootstrap (testei aqui e funcionou
tranquilo).

Falou,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEI3pUsQKHKL8A7zH00Ot2KGX8XjYFAltGtokACgkQ0Ot2KGX8
XjbKYA/+KRpDG4EiiHVQHqw4Siuyg4ABHT6IkN8U/6oorqwQS9Af9dM+oOYrR61l
WcjIREx5NprEdDvidAEPIeQP0MJQusadwGLCRjzh99gKu9syJSk4E6mXTebBjYew
LkSyBFr9gmufK0lSJnMJZsu32/hE1GL7uoiB3+OSlWVfZK6SUQHcSKJr6yrc3n4r
31L2Psq1xI6yl1VigSl9vP4wCRas1HEHWVg4BeJbio1JTGhBWtzTlf//J0D8MOFc
nvW34Qpul/Aqn5m+vk7dVUiBmqA7nFoo6SCx4dR4mzn7psvbrzXrZdmtCAnbKVdf
dnECZSjp5kk7ibaa69D3uaTBLJVaBTJ/cs8u9K1uMMLjVCsDhPPbnR1gHHalZ1Tn
6bc7EIw7Xkt7mUFrgBHdamsqRkkwyRiG/hACjSggyj8UKddCMbojKlDlB7eNVzgr
WOrksNy60R+UuEHIafwzLDGy/C80hvpWUg9MV6xa3za03enbZ5sTKGljJ/0hxgYO
+yVaeXhQ2+zszi/unuy+/6eG8CQ2YWEh4CPGVtLQOwYkIJxU7110/Dzs+/lftKDl
Au9/UdcyZxjp2NlP02zHOdnwjARnvDKBW5Q9w0vKnkffSgB8dDidYSO/W9Cc2PC8
cSw8t+KeR8VISLmy17Ct0IecdWq0G4wuBqre+uBsczpLJJFXfHM=
=qMQ3
-----END PGP SIGNATURE-----