use warnings;
use strict;
use IO::Handle;
use IO::File;
use Dpkg;
~
What is really going on? To me it looks like a perl (which I am not
familiar with) dependency problem. How can I fix it?
~
Thank you
C
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/AANLkTimS4f=oE6Vd-=Rf_SDezJp-2iD=MhpPWH...@mail.gmail.com
$ uname -a
Linux Microknoppix 2.6.37 #13 SMP PREEMPT Sun Jan 23 23:54:32 CET 2011
i686 GNU/Linux
$ which perl
/usr/bin/perl
$ perl --version
This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi
(with 51 registered patches, see perl -V for more detail)
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/AANLkTikOhv_3NsL8-j1tE...@mail.gmail.com
What its telling you is that Dpkg.pm should be in one of those directories it told you it was looking in. IIRC, apt-get is a perl script too so you might look in there and see if it lists that module in a different namespace and maybe try to modify the script you're trying to run to reflect what you see in apt-get.
> ~
> in order to run dpkg-scanpackages, I need to install first lzma,
> patch, libtimedate-perl and dpkg-dev, which I do via dpkg --install (I
> have done this before without any problems whatsoever)
This is very much not recommended, since dpkg will happily unpack
packages with unfulfilled dependencies and only barf when it cannot
configure them due to these missing dependencies. Why don't you use
apt to install packages?
> , but then when
> I try to run dpkg-scanpackages, I get:
> ~
> ~ ~~~~~~~~~~~~~~~~~~~~~~~~~
> ~
> Can't locate Dpkg.pm in @INC
,----
| $ dpkg -S Dpkg.pm
| libdpkg-perl: /usr/share/perl5/Dpkg.pm
`----
So libdpkg-perl is apparently not installed on your system.
> What is really going on? To me it looks like a perl (which I am not
> familiar with) dependency problem. How can I fix it?
Install libdpkg-perl, or better run "apt-get -f install".
Sven
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
$ dpkg -S Dpkg.pm
dpkg: *Dpkg.pm* not found.
$ ls -l /usr/share/perl5/
total 27
drwxr-xr-x 2 root root 2048 Oct 28 2009 Crypt
drwxr-xr-x 3 root root 120 Mar 14 07:27 Date
drwxr-xr-x 8 root root 4096 Oct 18 17:35 Debconf
drwxr-xr-x 5 root root 2048 Jan 24 16:24 Debian
-rw-r--r-- 1 root root 13030 Jan 12 06:45 DebianNet.pm
drwxr-xr-x 5 root root 440 Mar 14 07:27 Dpkg
drwxr-xr-x 3 root root 2048 Dec 14 23:37 File
drwxr-xr-x 2 root root 2048 Oct 7 13:27 Foomatic
drwxr-xr-x 2 root root 2048 Dec 14 02:05 Text
drwxr-xr-x 2 root root 60 Mar 14 07:27 Time
$ dpkg -S "*.pm" | grep Dpkg
dpkg-dev: /usr/share/perl5/Dpkg/ErrorHandling.pm
dpkg-dev: /usr/share/perl5/Dpkg/Cdata.pm
dpkg-dev: /usr/share/perl5/Dpkg/Vars.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Patch.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Archive.pm
dpkg-dev: /usr/share/perl5/Dpkg/Substvars.pm
dpkg-dev: /usr/share/perl5/Dpkg/Changelog.pm
dpkg-dev: /usr/share/perl5/Dpkg/Control.pm
dpkg-dev: /usr/share/perl5/Dpkg/IPC.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V1.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Functions.pm
dpkg-dev: /usr/share/perl5/Dpkg/Shlibs.pm
dpkg-dev: /usr/share/perl5/Dpkg/Fields.pm
dpkg-dev: /usr/share/perl5/Dpkg/Exit.pm
dpkg-dev: /usr/share/perl5/Dpkg/Shlibs/SymbolFile.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/native.pm
dpkg-dev: /usr/share/perl5/Dpkg/Shlibs/Objdump.pm
dpkg-dev: /usr/share/perl5/Dpkg/Version.pm
dpkg-dev: /usr/share/perl5/Dpkg/Deps.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/git.pm
dpkg-dev: /usr/share/perl5/Dpkg/Changelog/Debian.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/CompressedFile.pm
dpkg-dev: /usr/share/perl5/Dpkg/BuildOptions.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/custom.pm
dpkg-dev: /usr/share/perl5/Dpkg/Compression.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/quilt.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Compressor.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V2.pm
dpkg-dev: /usr/share/perl5/Dpkg/Checksums.pm
dpkg-dev: /usr/share/perl5/Dpkg/Source/Package/V3/bzr.pm
dpkg-dev: /usr/share/perl5/Dpkg/Arch.pm
dpkg-dev: /usr/share/perl5/Dpkg/Path.pm
>So libdpkg-perl is apparently not installed on your system.
but there is no libdpkg-perl in lenny that I can find.
http://packages.debian.org/search?searchon=names&keywords=libdpkg
Or where could I find it?
~
lbrtchx
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/AANLkTimWsvj6KVZcoGBHg...@mail.gmail.com
>>So libdpkg-perl is apparently not installed on your system.
>
> but there is no libdpkg-perl in lenny that I can find.
True, this package has been split out from dpkg and dpkg-dev after the
Lenny release. What does "dpkg -l dpkg dpkg-dev" print?
Sven
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/AANLkTinVj_6ogH9B2g4E2...@mail.gmail.com
>> True, this package has been split out from dpkg and dpkg-dev after the
>> Lenny release. What does "dpkg -l dpkg dpkg-dev" print?
> ~
> $ dpkg -l dpkg dpkg-dev
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version Description
> +++-==============-==============-============================================
> ii dpkg 1.15.8.9 Debian package management system
> un dpkg-dev <none> (no description available)
> ~
> after going:
> ~
> dpkg --install dpkg-scanpackages/dpkg-dev_1.14.31_all.deb
I suppose this gave you some error messages?
> # dpkg -l dpkg dpkg-dev
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version
> Description
> +++-================================-================================-================================================================================
> ii dpkg 1.15.8.9
> Debian package management system
> iU dpkg-dev 1.14.31
> Debian package development tools
This combination does not work, and the package relationships declare
that, as can be seen in the error message when dpkg tries to configure
dpkg-dev:
> dpkg: dependency problems prevent configuration of dpkg-dev:
> dpkg (1.15.8.9) breaks dpkg-dev (<< 1.15.8) and is installed.
> Version of dpkg-dev to be configured is 1.14.31.
The reason for this is precisely the move of Dpkg.pm to libdpkg-perl in
dpkg version 1.15.8 which breaks older versions of dpkg-dev.
> I still see no way out of this dependency problems
Install a newer dpkg-dev along with its dependencies. And use apt to
manage packages, it will prevent you from installing broken package
combinations.
Sven
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Can't locate Dpkg.pm in @INC (@INC contains: /etc/perl/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5I still see no way out of this dependency problems
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at /usr/bin/dpkg-scanpackages line 8.
BEGIN failed--compilation aborted at /usr/bin/dpkg-scanpackages line 8.
~
~
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/AANLkTi=J4H=Jrmu3d8j6xTm+0PS...@mail.gmail.com