If there is not already a bug report please submit one at bugs.devuan.org
I edited the other thread and the above post to reflect the situation.
]]>EDIT: in fact after a quick check it turns out @golinux is right, there is no issue with the original script IF your repo points to deb.devuan.org:
https://dev1galaxy.org/viewtopic.php?pid=11397#p11397
Count_Cucaracha wrote:GNUser wrote:Here's a robust workaround for the time being
Its robustness was short-lived as that option to apt-file no longer exists.
More information as to why not would be helpful. Perhaps it was PEBKAC . . .
that "workaround" wont help, because it searches the contents of the copied apt-file caches and uses the Debian repos, NOT the Devuan repos and caches created from them.
https://dev1galaxy.org/viewtopic.php?id=2291
looks for "dir/Content-_arch_.gz" instead of "dir/binary-_arch_/Packages.gz"
Cheers
Paul
]]>GNUser wrote:Here's a robust workaround for the time being
Its robustness was short-lived as that option to apt-file no longer exists.
More information as to why not would be helpful. Perhaps it was PEBKAC . . .
]]>Here's a robust workaround for the time being
Its robustness was short-lived as that option to apt-file no longer exists.
]]>Slight modification: I didn't copy the cache file. I copied the debian sources.list to my user's home and ran 'apt-file -s sources.list update' and it put an apt-file directory in ~/.cache.
]]>1. On a Debian Jessie system:
$ sudo apt-file update
2. Copy /var/cache/apt/apt-file directory from Debian to Devuan
3. Copy /etc/apt/sources.list from Debian to Devuan, renaming it /etc/apt/debian-sources.list in Devuan so it doesn't conflict with Devuan's "real" sources.list
4. Put this in your ~/.bashrc:
alias apt-file='apt-file --sources-list /etc/apt/debian-sources.list'
Now apt-file searches work as expected, regardless of whether the package containing the file is already installed on your system or not. We're obviously searching through Debian's packages, but 99% of the time it'll be close enough. Just make sure to run apt-file as regular user, since regular user is the one who has the alias:
$ apt-file search foo
To find what package a file comes from:
dpkg -S <file>
To find what files come with a package:
dpkg -L <package>