LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using debmirror on "non debian-like" distro (https://www.linuxquestions.org/questions/linux-software-2/using-debmirror-on-non-debian-like-distro-701665/)

Vhann 02-02-2009 11:44 AM

Using debmirror on "non debian-like" distro
 
Hi all,

I own an old machine ( PII 300 Mhz 54 Mb RAM :p ) I only use for downloads. Since the machine isn't powerful enough to run even wmii ( :O ), installing Debian, Ubuntu or such thing is out of question (actually the machine runs under Slackware 12.0.0).

Anyway, I need to fetch Ubuntu repositories for offline use (I recently converted my family to Linux but they only have dial-up Internet).

I recently found debmirror was a bare Perl script making it possibly usable under a "not Debian" distro. Actually, it always exits with error(s) when run.

Here is the command-line used:
Code:

debmirror --nosource -m --passive --host=ca.archive.ubuntu.com --root=/media/disk/ubuntu --method=ftp --progress --dist=hardy --section=main,multiverse,universe,restricted --arch=i386 --ignore-release-gpg /media/disk/ubuntu
And output:
Code:

Can't locate LockFile/Simple.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i486-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/
lib/perl5/site_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at ./debmirror lin
e 366.
BEGIN failed--compilation aborted at ./debmirror line 366.

Any help would be appreciated,
thank you for your attention.

Regards,
Vhann

tomklq 02-03-2009 04:39 AM

You need the LockFile::Simple perl module, which is available via CPAN:
http://search.cpan.org/~jv/LockFile-....207/Simple.pm

Alternatively, someone who is familiar with Slackware may be able to point you to a slack package for that module.

Vhann 02-03-2009 05:45 PM

Ahh, thanks for the hint tomklq (as well as for the URL :) ).

Your help is very much appreciated :) .

Ok, just a little hint for those who might want to do the same thing: it's a real pain in the arse. Here's the whole list of Perl modules I had to build and install ( in order of succesfull installation )*:

*Dash-prefixed modules are dependencies of the last package in a 'list'

-Compress::Raw::Zlib
-IO::Compress::Base
-IO::Compress:Zlib
Compress::Zlib

Digest::SHA1

-MIME::Base64
-URI
-HTML::Tagset
-HTML::Parser
-libnet ( already installed )
-Digest::MD5
libwww-perl

Anyway, now it works and I know *VERY* well how to install Perl modules :p .

Thanks again tomklq.
Regards,
Vhann

codercotton 09-07-2016 04:07 PM

Thanks! Works perfect, though a couple more dependencies are required for later versions:

Code:

cpan install Net::INET6Glue
cpan install LWP::UserAgent



All times are GMT -5. The time now is 01:42 PM.