Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
June 19, 2016 05:28AM
Hi

I followed up on the installation of LMS (logitech media server) on Jessie and found something curios.

Everything is done on a pogoplug E02 running Wheezy.

1) Installed a I brand new rootfs installation on a new USB stick
2) chroot into it
3) installed logitechmediaserver_7.9.0~1466175427_arm.deb and got the following output:

root@lms:~# dpkg --install logitechmediaserver_7.9.0~1466175427_arm.deb
Selecting previously unselected package logitechmediaserver.
(Reading database ... 12657 files and directories currently installed.)
Preparing to unpack logitechmediaserver_7.9.0~1466175427_arm.deb ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Unpacking logitechmediaserver (7.9.0~1466175427) ...
dpkg: dependency problems prevent configuration of logitechmediaserver:
 logitechmediaserver depends on perl (>= 5.8.8); however:
  Package perl is not installed.

dpkg: error processing package logitechmediaserver (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (215-17+deb8u3) ...
Errors were encountered while processing:
 logitechmediaserver
root@lms:~#

but got

root@lms:~# perl --version
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = "en_US.UTF-8",
	LC_CTYPE = "UTF-8",
	LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This is perl 5, version 20, subversion 2 (v5.20.2) built for arm-linux-gnueabi-thread-multi-64int
(with 45 registered patches, see perl -V for more detail)

Copyright 1987-2015, 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.

root@lms:~#

So I assume perl is installed. But when now ri=unning

root@lms:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  acl libbind9-80 libcryptsetup4 libdb5.1 libdns88 libgcrypt11 libgnutls26 libgssglue1 libisc84 libisccc80 libisccfg82 liblwres80 libprocps0 libsystemd-login0 libtasn1-3 systemd
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  perl perl-modules
Suggested packages:
  perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl make libb-lint-perl libcpanplus-dist-build-perl libcpanplus-perl libfile-checktree-perl liblog-message-simple-perl liblog-message-perl
  libobject-accessor-perl
Recommended packages:
  rename libarchive-extract-perl libmodule-pluggable-perl libpod-latex-perl libterm-ui-perl libtext-soundex-perl libcgi-pm-perl libmodule-build-perl libpackage-constants-perl
The following NEW packages will be installed:
  perl perl-modules
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 4589 kB of archives.
After this operation, 26.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://ftp.us.debian.org/debian/ jessie/main perl-modules all 5.20.2-3+deb8u3
  404  Not Found [IP: 2610:148:1f10:3::89 80]
Err http://ftp.us.debian.org/debian/ jessie/main perl armel 5.20.2-3+deb8u3
  404  Not Found [IP: 2610:148:1f10:3::89 80]
E: Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/perl/perl-modules_5.20.2-3+deb8u3_all.deb  404  Not Found [IP: 2610:148:1f10:3::89 80]

E: Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/perl/perl_5.20.2-3+deb8u3_armel.deb  404  Not Found [IP: 2610:148:1f10:3::89 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@lms:~#

Equally,

root@lms:~# apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 logitechmediaserver : Depends: perl (>= 5.8.8) but it is not installed
E: Unmet dependencies. Try using -f.
root@lms:~#

So is there siomething wrong eith the rootfs? Because on the one hand it is telling me that perl is not installed, but I can use it?

root@lms:~# which perl
/usr/bin/perl
root@lms:~#

Any ideas?

===========================
Blog: https://rmkrug.wordpress.com/

1 x Pogoplug E02 (pink): Logitech media server

1 x Pogoplug E02 (pink): FTP server only (throw away configuration - quick to rebuild)

1 x GoFlex Net: running OpenMediaVault
Re: Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
June 19, 2016 05:29AM
Just to folllow

===========================
Blog: https://rmkrug.wordpress.com/

1 x Pogoplug E02 (pink): Logitech media server

1 x Pogoplug E02 (pink): FTP server only (throw away configuration - quick to rebuild)

1 x GoFlex Net: running OpenMediaVault
Re: Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
June 19, 2016 02:56PM
Install locale:
apt-get install locales

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
June 19, 2016 04:25PM
Done.

Now I get:

root@lms:~# dpkg --install logitechmediaserver_7.9.0~1466175427_all.deb
Selecting previously unselected package logitechmediaserver.
(Reading database ... 13279 files and directories currently installed.)
Preparing to unpack logitechmediaserver_7.9.0~1466175427_all.deb ...
Unpacking logitechmediaserver (7.9.0~1466175427) ...
dpkg: dependency problems prevent configuration of logitechmediaserver:
 logitechmediaserver depends on perl (>= 5.8.8); however:
  Package perl is not installed.

dpkg: error processing package logitechmediaserver (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (215-17+deb8u3) ...
Errors were encountered while processing:
 logitechmediaserver
root@lms:~# perl --version

This is perl 5, version 20, subversion 2 (v5.20.2) built for arm-linux-gnueabi-thread-multi-64int
(with 45 registered patches, see perl -V for more detail)

Copyright 1987-2015, 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.

root@lms:~#


Rainer

===========================
Blog: https://rmkrug.wordpress.com/

1 x Pogoplug E02 (pink): Logitech media server

1 x Pogoplug E02 (pink): FTP server only (throw away configuration - quick to rebuild)

1 x GoFlex Net: running OpenMediaVault
rkrug Wrote:
-------------------------------------------------------

> dpkg: dependency problems prevent configuration of
> logitechmediaserver:
> logitechmediaserver depends on perl (>= 5.8.8);
> however:
> Package perl is not installed.
>
> dpkg: error processing package logitechmediaserver
> (--install):
> dependency problems - leaving unconfigured
> Processing triggers for systemd (215-17+deb8u3)

I'm not rocking Jessie ATM on any of my devices so maybe someone could try compiling from source Perl ?Source Code Download
Re: Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
June 19, 2016 05:32PM
have you done a

dpkg-reconfigure locales

&

dpkg-reconfigure tzdata

to make sure you language and locales are correct?

Dont suppose you fancy testing the ,deb i built in you chroot environment?

http://forum.doozan.com/read.php?2,28571,page=2

https://www.dropbox.com/s/2bgqzy32iukyg7l/logitechmediaserver-patch.deb?dl=0

have packaged those files you mentioned into the folder you listed and thats as far as i can take this.
linky here : logitechmediaserver-patch.deb

Let me know if this works or not and i will either remove the link or find some better way of sharing it

Steps to take -
install your 7.9.0 deb file then install the patch.deb over the top - tjat seems to match what i have read on the forum posts



Edited 1 time(s). Last edit at 06/19/2016 06:05PM by Gravelrash.
Re: Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
June 21, 2016 03:36AM
@Gravelrash

Sorry - maybe later. I'll leave it as it is at the moment.

Cheers,

Rainer

===========================
Blog: https://rmkrug.wordpress.com/

1 x Pogoplug E02 (pink): Logitech media server

1 x Pogoplug E02 (pink): FTP server only (throw away configuration - quick to rebuild)

1 x GoFlex Net: running OpenMediaVault
cde
Re: Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
March 01, 2020 05:30PM
Old topic, but this may be relevant.

I was having similar issues installing samba on my Jessie build DockStar. Broken Dependencies stating:

samba : Depends: update-inetd but it is not going to be installed

Looking into update-inetd (or some intermediates), like you:

Depends: perl (>= 5.6.0-16) but it is not going to be installed

but 5.20 was install. Install -f did not fix this. Traced dependencies one by one to perl-base.

Depends: perl-base (= 5.20.2-3+deb8u11) but 5.20.2-3+deb8u12 is to be installed

A newer security update was to be installed (Actually ALREADY installed) that prevented the main package from resolving dependencies. Somehow the deb8u12 security patch (back port really) does not fit in the dependency tree.

Had to downgrade to the requested version:
apt-get install perl-base=5.20.2-3+deb8u11

And then everything fit like a lego. Was able to install the packages I need, and then was able to do an update/upgrade to pull the security patches again.

Frankly, I'm just going to the latest Buster rootfs shared on here instead of dealing with my old Jessie rootfs due to other old-old-stable issues like this, but I wanted to have an answer here incase anyone else has the same issues.
Re: Perl in Debian Jessis rootfs - installed but not installed? Error in rootfs?
March 04, 2020 08:04PM
For posterity sake, I thought I would repost and enhance what I posted in the Dell Kace M300 thread about how to resolve the Perl / CPAN issue with Stretch / Buster and more recent versions (i.e. 7.9+) of logitechmediaserver.

"Only problem with getting LMS to work on the M300 is that the pre-compiled CPAN version is meant for armhf (aka RasPi). For Debian 9 and 10, after you dpkg the latest nightly deb (which will fail to start because of the missing proper CPAN), you need to clone the slimserver git at https://github.com/Logitech/slimserver-vendor.git, switch to the CPAN subdirectory and run the buildme.sh script. This will create 5.28 version of CPAN that you will need to manually copy per the instructions on this page: https://github.com/Logitech/slimserver-vendor/tree/public/7.9/CPAN. Note the required packages you will need before compiling. Restart logitechmediaserver after the new CPAN directory has been copied and you should be good to go."
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: