Author Topic: apt-get issues  (Read 7022 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
apt-get issues
« on: January 19, 2016, 07:44:53 am »
Hey,

When I try to do some apt-get upgrades, I've got several fails.
Is this easy to repair or... ?
I've already done an 'apt-get autoremove', but the errors remain.

Quote
dcerouter_1044981:/# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-lts-utopic linux-headers-generic-lts-utopic
  linux-image-generic-lts-utopic lmce-asterisk lmce-cec-adaptor lmce-core
  lmce-md-meta mythtv-common mythtv-frontend mythweb openjdk-7-jre
  openjdk-7-jre-headless pluto-avwizard pluto-boot-scripts
  pluto-confirm-dependencies pluto-xine-player
The following packages will be upgraded:
  lmce-media-identifier
1 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
4 not fully installed or removed.
Need to get 0 B/375 kB of archives.
After this operation, 352 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
  lmce-media-identifier
Authentication warning overridden.
(Reading database ... 179317 files and directories currently installed.)
Preparing to unpack .../lmce-media-identifier_2.0.0.47.16010531792_i386.deb ...
Unpacking lmce-media-identifier (2.0.0.47.16010531792) over (2.0.0.47.15121131752) ...
dpkg: error processing archive /var/cache/apt/archives/lmce-media-identifier_2.0.0.47.16010531792_i386.deb (--unpack):
 trying to overwrite '/usr/pluto/bin/External_Media_Identifier', which is also in package id-my-disc 1.8.ub1004
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/lmce-media-identifier_2.0.0.47
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: apt-get issues
« Reply #1 on: January 19, 2016, 11:11:50 am »
This looks like a known issue.

The original EMI id_my_disc can no longer be used due to us not having the code, but the binary only. phenigma went ahead and wrote a new EMI. The package still needs a Conflicts / Replaces option to remove the old id_my_disc package. For now, what you can try to do is, manually remove id_my_disc (dpkg -r id_my_disc), and install the new package.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: apt-get issues
« Reply #2 on: January 19, 2016, 01:09:30 pm »
I couldn't uninstall the package with an underscore, but with 'dpkg -r id_my_disc'.
This removed properly the package.

And for the moment, i'm getting some other 'warnings':
Code: [Select]
dcerouter_1044981:/tmp# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-lts-utopic linux-headers-generic-lts-utopic
  linux-image-generic-lts-utopic lmce-asterisk lmce-cec-adaptor lmce-core
  lmce-md-meta mythtv-common mythtv-frontend mythweb openjdk-7-jre
  openjdk-7-jre-headless pluto-avwizard pluto-boot-scripts
  pluto-confirm-dependencies pluto-xine-player
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up lmce-datalogger-plugin (2.0.0.47.15121131752) ...
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
WARNING: "pear/Image_Color" is deprecated in favor of "pear/Image_Color2"
Did not download optional dependencies: pear/Numbers_Roman, pear/Numbers_Words, use --alldeps to download automatically
pear/Image_Graph can optionally use package "pear/Numbers_Roman"
pear/Image_Graph can optionally use package "pear/Numbers_Words"
downloading Image_Canvas-0.3.3.tgz ...
Starting to download Image_Canvas-0.3.3.tgz (55,245 bytes)
.....done: 55,245 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Canvas-0.3.3.tgz"
Download of "pear/Image_Canvas" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Canvas"
downloading Image_Graph-0.8.0.tgz ...
Starting to download Image_Graph-0.8.0.tgz (370,682 bytes)
...done: 370,682 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Graph-0.8.0.tgz"
Download of "pear/Image_Graph" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Graph"
downloading Image_Color-1.0.4.tgz ...
Starting to download Image_Color-1.0.4.tgz (9,656 bytes)
...done: 9,656 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Color-1.0.4.tgz"
Download of "pear/Image_Color" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Color"
Download failed
install failed
dpkg: error processing package lmce-datalogger-plugin (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lmce-diskless-tools (2.0.0.47.15121131752) ...
/var/lib/dpkg/info/lmce-diskless-tools.postinst: line 48: /usr/pluto/bin/UpdateDebCache.sh: No such file or directory
dpkg: error processing package lmce-diskless-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pluto-newmdinteractor:
 pluto-newmdinteractor depends on lmce-diskless-tools (>= 2.0.0.47); however:
  Package lmce-diskless-tools is not configured yet.
 pluto-newmdinteractor depends on lmce-diskless-tools (<< 2.0.0.48); however:
  Package lmce-diskless-tools is not configured yet.

dpkg: error processing package pluto-newmdinteractor (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 lmce-datalogger-plugin
 lmce-diskless-tools
 lmce-eib-eibd
 pluto-newmdinteractor
E: Sub-process /usr/bin/dpkg returned an error code (1)


ps Should I be worry about the packages that are hold back?
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: apt-get issues
« Reply #3 on: January 19, 2016, 02:58:42 pm »
The missing /usr/pluto/bin/UpdateDebCache.sh is concerning.  That file is in pluto-boot-scripts and should be updated before the diskless tools.  We need to verify there is a proper depends on the diskless tools package.  For now you can edit the file /var/lib/dpkg/info/lmce-diskless-tools.postinst and comment out the line trying to call the UpdateDebCache.sh script.

That should get your install moving a little further.

The new media identifier has had the conflict data added but we have yet to build and push those new packages as we are still in the transition to git for our code management and upgrading the builders.  Soon.  As well, I really don't know if the new media identifier is working yet.  There is a lot of testing to do with that still.

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: apt-get issues
« Reply #4 on: January 19, 2016, 03:15:00 pm »
Just tried to uncomment it, but still gotting some issues:

Code: [Select]
dcerouter_1044981:/# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-lts-utopic linux-headers-generic-lts-utopic
  linux-image-generic-lts-utopic lmce-asterisk lmce-cec-adaptor lmce-core
  lmce-md-meta mythtv-common mythtv-frontend mythweb openjdk-7-jre
  openjdk-7-jre-headless pluto-avwizard pluto-boot-scripts
  pluto-confirm-dependencies pluto-xine-player
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up lmce-datalogger-plugin (2.0.0.47.15121131752) ...
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
WARNING: "pear/Image_Color" is deprecated in favor of "pear/Image_Color2"
Did not download optional dependencies: pear/Numbers_Roman, pear/Numbers_Words, use --alldeps to download automatically
pear/Image_Graph can optionally use package "pear/Numbers_Roman"
pear/Image_Graph can optionally use package "pear/Numbers_Words"
downloading Image_Canvas-0.3.3.tgz ...
Starting to download Image_Canvas-0.3.3.tgz (55,245 bytes)
.....done: 55,245 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Canvas-0.3.3.tgz"
Download of "pear/Image_Canvas" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Canvas"
downloading Image_Graph-0.8.0.tgz ...
Starting to download Image_Graph-0.8.0.tgz (370,682 bytes)
...done: 370,682 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Graph-0.8.0.tgz"
Download of "pear/Image_Graph" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Graph"
downloading Image_Color-1.0.4.tgz ...
Starting to download Image_Color-1.0.4.tgz (9,656 bytes)
...done: 9,656 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Color-1.0.4.tgz"
Download of "pear/Image_Color" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Color"
Download failed
install failed
dpkg: error processing package lmce-datalogger-plugin (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lmce-diskless-tools (2.0.0.47.15121131752) ...
/var/lib/dpkg/info/lmce-diskless-tools.postinst: line 49: syntax error near unexpected token `fi'
dpkg: error processing package lmce-diskless-tools (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pluto-newmdinteractor:
 pluto-newmdinteractor depends on lmce-diskless-tools (>= 2.0.0.47); however:
  Package lmce-diskless-tools is not configured yet.
 pluto-newmdinteractor depends on lmce-diskless-tools (<< 2.0.0.48); however:
  Package lmce-diskless-tools is not configured yet.

dpkg: error processing package pluto-newmdinteractor (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 lmce-datalogger-plugin
 lmce-diskless-tools
 lmce-eib-eibd
 pluto-newmdinteractor
E: Sub-process /usr/bin/dpkg returned an error code (1)


Not sure if it's important, but it can wait for me (most important things are working on my linuxMCE). But if you want me to test/debug it a bit more, I can do it...
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: apt-get issues
« Reply #5 on: January 20, 2016, 12:45:53 am »
whoa!  you've got a bunch of different issues showing in that log. lmce-eib-eibd issues,  datalogger-plugin issues, and "/var/lib/dpkg/info/lmce-diskless-tools.postinst: line 49: syntax error near unexpected token `fi'" says the edit of that postinst didn't go well either.  I'm on the diskless stuff so if you'd like to pastebin that postinst script I check it against our current stuff and see what I can find.

After that I'm not sure what the pear issues mean, something's not right there though.  And the eib issue I'm not sure about either but I'd be sure the /etc/apt/preferences file is correct.  You may have to forcibly remove and re-install those packages to get past this.

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: apt-get issues
« Reply #6 on: January 20, 2016, 06:49:35 am »
Here's the code:

Code: [Select]
cat /var/lib/dpkg/info/lmce-diskless-tools.postinst
#!/bin/bash
#!/bin/sh
# postinst script for lmce-diskless-tools
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <postinst> `abort-remove'
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    configure)
# /var/lmce-build/svn/trunk/src/UbuntuDiskless/mkr_postinst.sh
#!/bin/bash

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#if [[ "$2" != "" ]] ;then
#       /usr/pluto/bin/Diskless_CreateTBZ.sh || echo "WARNING: Diskless_CreateTBZ.sh returned an error!"
#fi

if [ -x /usr/pluto/bin/Debug_LogKernelModules.sh ]; then
        /usr/pluto/bin/Debug_LogKernelModules.sh "$0" || :
fi

#################################################################
## move deb-cache to newer multi-arch friendly location
## update sourcs.list on core and all MDs to reflect new locations
if [ ! -d /usr/pluto/deb-cache ]; then
        exit 0
fi

LastVersion="$2"

# TODO: check if ver <= 20.0.0.45 (1004), only run this if it's that old
if [[ -n "$LastVersion" ]] ; then
        /usr/pluto/bin/UpdateDebCache.sh
fi

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0


ps my version
Quote from: cat /proc/version
Linux version 3.16.0-36-generic (buildd@roseapple) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #48~14.04.1-Ubuntu SMP Wed Apr 15 13:12:28 UTC 2015


I'll have a look tomorrow how to forcibly remove and re-install the eibd-package.... Hope I don't break to much...
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: apt-get issues
« Reply #7 on: January 20, 2016, 03:31:26 pm »
Ah, you'll need to comment the if and fi lines above and below the updatedebcache.sh line for bash to be happy.  I've got this on my list of things to look at. 

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: apt-get issues
« Reply #8 on: January 20, 2016, 05:25:48 pm »
Seems to passed the updatedebcache warning.


I've got now still following issues. If I can do anything, let me know!
Not urgent for me, since we don't encounter any human issue with the server. ;)

Code: [Select]
dcerouter_1044981:/# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-lts-utopic linux-headers-generic-lts-utopic
  linux-image-generic-lts-utopic lmce-asterisk lmce-cec-adaptor lmce-core
  lmce-md-meta mythtv-common mythtv-frontend mythweb openjdk-7-jre
  openjdk-7-jre-headless pluto-avwizard pluto-boot-scripts
  pluto-confirm-dependencies pluto-xine-player
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up lmce-datalogger-plugin (2.0.0.47.15121131752) ...
WARNING: "pear/Image_Color" is deprecated in favor of "pear/Image_Color2"
Did not download optional dependencies: pear/Numbers_Roman, pear/Numbers_Words, use --alldeps to download automatically
pear/Image_Graph can optionally use package "pear/Numbers_Roman"
pear/Image_Graph can optionally use package "pear/Numbers_Words"
downloading Image_Canvas-0.3.3.tgz ...
Starting to download Image_Canvas-0.3.3.tgz (55,245 bytes)
.....done: 55,245 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Canvas-0.3.3.tgz"
Download of "pear/Image_Canvas" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Canvas"
downloading Image_Graph-0.8.0.tgz ...
Starting to download Image_Graph-0.8.0.tgz (370,682 bytes)
...done: 370,682 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Graph-0.8.0.tgz"
Download of "pear/Image_Graph" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Graph"
downloading Image_Color-1.0.4.tgz ...
Starting to download Image_Color-1.0.4.tgz (9,656 bytes)
...done: 9,656 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Color-1.0.4.tgz"
Download of "pear/Image_Color" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Color"
Download failed
install failed
dpkg: error processing package lmce-datalogger-plugin (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: apt-get issues
« Reply #9 on: January 20, 2016, 06:31:29 pm »
One thing is that you'll need to do a 'dist-upgrade' to get all the updated lmce files.  The eibd error is likely due to bcusdk stuff not being installed and the datalogger plugin seems to have issues of it's own and I would suggest removing the package atm.

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: apt-get issues
« Reply #10 on: January 20, 2016, 07:27:40 pm »
A dist-upgrade indeed solved some things, and the autoremove.
I've manully removed the  lmce-datalogger-plugin, hope that this was the one you meant with 'atm'? At least it solved the datalog stuff.

My apt-get upgrade gives me now:
Code: [Select]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 lmce-eib-eibd
E: Sub-process /usr/bin/dpkg returned an error code (1)

So one left... the eibd.
It feels so nice when you see less and less 'issues'... ;)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: apt-get issues
« Reply #11 on: January 20, 2016, 09:57:34 pm »
atm == at the moment.  yes.  it might try to re-install if you have the datalogger plugin installed in your tree, removing that from your tree would prevent it from being reinstalled automatically by lmce later on.

Getting closer!

J.