The officially official Devuan Forum!

You are not logged in.

#1 2018-08-08 07:45:52

paulwratt
Member
Registered: 2018-08-08
Posts: 5  

apt-file constructs wrong url from /etc/apt/sources.list

"apt-file" perl script is bugged in Devuan 1 (jessie-stable-old?)
looks for "dir/Content-_arch_.gz" instead of "dir/binary-_arch_/Packages.gz"

use "apt-file -v update" to reproduce debug confirmation of issue.

Why was this package allowed thru? Does the same bug appear in Devuan 2? Someone is letting the team down ...

Last edited by paulwratt (2018-08-08 10:36:15)

Offline

#2 2018-08-08 12:50:59

golinux
Administrator
Registered: 2016-11-25
Posts: 1,181  

Re: apt-file constructs wrong url from /etc/apt/sources.list

Not the Devuan team.   https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any  Talk to Debian.  We have not touched that package.

Online

#3 2018-08-08 19:06:26

GNUser
Member
Registered: 2017-03-16
Posts: 363  

Re: apt-file constructs wrong url from /etc/apt/sources.list

paulwratt, in Devuan jessie I had problems with apt-file not finding Contents-arch.gz, it may be related to your issue:
https://dev1galaxy.org/viewtopic.php?id=519

In Devuan ASCII the problem went away.

Offline

#4 Yesterday 05:51:27

paulwratt
Member
Registered: 2018-08-08
Posts: 5  

Re: apt-file constructs wrong url from /etc/apt/sources.list

golinux wrote:

Not the Devuan team.   https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any  Talk to Debian.  We have not touched that package.

In Devuan ASCII the problem went away.

can a Devuan patch be applied to the Jessie repos to fix this, from a diff between Dev1 Jessie & Dev1 Ascii then?

Last edited by paulwratt (Yesterday 06:01:00)

Offline

#5 Yesterday 06:22:01

golinux
Administrator
Registered: 2016-11-25
Posts: 1,181  

Re: apt-file constructs wrong url from /etc/apt/sources.list

paulwratt wrote:

can a Devuan patch be applied to the Jessie repos to fix this, from a diff between Dev1 Jessie & Dev1 Ascii then?

I'm guessing that if you use deb.devuan.org in your sources.list instead of auto.mirror.devuan.org, that issue may be resolved.  The auto.mirror default shipped on the jessie isos is now deprecated.  But then it's late and I'm really tired . . .

Online

#6 Yesterday 18:50:35

paulwratt
Member
Registered: 2018-08-08
Posts: 5  

Re: apt-file constructs wrong url from /etc/apt/sources.list

golinux wrote:
paulwratt wrote:

can a Devuan patch be applied to the Jessie repos to fix this, from a diff between Dev1 Jessie & Dev1 Ascii then?

I'm guessing that if you use deb.devuan.org in your sources.list instead of auto.mirror.devuan.org, that issue may be resolved.  The auto.mirror default shipped on the jessie isos is now deprecated.  But then it's late and I'm really tired . . .

yep ur tired smile I dont use either of those servers. I presume by "resolved" you mean they have debian filesystem structure, looks for "dir/Content-_arch_.gz" instead of "dir/binary-_arch_/Packages.gz"

well anyway, after 4 hours+ of looking, I can tell you this issues only applys to older "apt-file" packages, as the newer v3 ones have been completely rewritten.

what I can also tell you is by inserting the following at line 232 you solve the problem with Devuan Jessie "apt-file" v2:

/usr/bin/apt-file

$cmd  =~ s/Contents\-$arch/binary\-$arch\/Packages/g;

insert the above line at 232 below "$dest =~ ..." and above "$cmd =~ ..." and it will work fine

if someone could apply that as a Devuan patch and update the package in all the Devuan Jessie repos, you will become famous smile

NOTE: the actual bug is in the "AptPkg.so" module, not any "*.pm" or "*.pl" files. Which is probably why there was a complete rewrite for v3.

Last edited by paulwratt (Yesterday 19:14:59)

Offline

Board footer