Author Topic: Lmce-core update error  (Read 8963 times)

maverick0815

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 858
    • View Profile
Lmce-core update error
« on: May 15, 2017, 07:57:14 am »
I have just installed the latest updates ans lmce-core produces an error
Quote
dcerouter_1047595:/home/linuxmce# apt-get dist-upgrade
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-core (2.0.0.47.201705131307+14f85ee9) ...
Mo 15. Mai 07:52:50 CEST 2017 - Updating /etc/pluto.conf (if required)
/var/lib/dpkg/info/lmce-core.postinst: line 99: Configure_NTP_Server: command not found
dpkg: error processing package lmce-core (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 lmce-core
E: Sub-process /usr/bin/dpkg returned an error code (1)

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #1 on: May 15, 2017, 03:20:14 pm »
Strange - that call has been in there for over a year...

Do you need a hotfix, or is everything working, except the upgrade itself?

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #2 on: May 15, 2017, 03:49:24 pm »
I did some more checking. Would you mind pasting the output of
Code: [Select]
dpkg -l | grep lmce | grep script

please.

maverick0815

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 858
    • View Profile
Re: Lmce-core update error
« Reply #3 on: May 15, 2017, 07:07:00 pm »
There you go
Quote
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-117-generic i686)

 * Documentation:  https://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Mon May 15 07:42:55 2017 from 192.168.80.196
linuxmce@dcerouter:~$ sudo su
[sudo] password for linuxmce:
dcerouter_1047595:/home/linuxmce# dpkg -l | grep lmce | grep script
ii  lmce-advanced-ip-camera               2.0.0.47.201702201459+325cc736             i386         <insert up to 60 chars description>
ii  lmce-autotagger                       2.0.0.47.201609172308+325de35d             i386         <insert up to 60 chars description>
ii  lmce-cec-adaptor                      2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
iF  lmce-core                             2.0.0.47.201705131307+14f85ee9             i386         <insert up to 60 chars description>
ii  lmce-diskless-tools                   2.0.0.47.201611272017+a7c10426             i386         <insert up to 60 chars description>
ii  lmce-game-db                          2.0.0.47.16010131782                       i386         <insert up to 60 chars description>
ii  lmce-hybrid                           2.0.0.47.15121531757                       i386         <insert up to 60 chars description>
ii  lmce-install-scripts                  2.0.0.47.201602141633+a332f49a             i386         <insert up to 60 chars description>
ii  lmce-launch-manager                   2.0.0.47.201602240724+a84db86f             i386         <insert up to 60 chars description>
ii  lmce-linux-igd                        2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-md-meta                          2.0.0.47.201705131307+14f85ee9             i386         <insert up to 60 chars description>
ii  lmce-mediatomb                        2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-nbd-client-wrapper               2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-qmediaplayer-plugin              2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-qorbiter-android                 2.0.0.47.201603251446+a1c0f6ea             i386         <insert up to 60 chars description>
ii  lmce-squeezeslave                     2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-usb-gamepad                      2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-weather                          2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-weather-plugin                   2.0.0.47.15121131752                       i386         <insert up to 60 chars description>
ii  lmce-windowutils                      2.0.0.47.16010131782                       i386         <insert up to 60 chars description>
ii  lmce-zfs-support                      2.0.0.47.201705131307+14f85ee9             i386         <insert up to 60 chars description>
dcerouter_1047595:/home/linuxmce#

so far no hotfix is besser here

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #4 on: May 15, 2017, 07:25:50 pm »
Is this an older install?

You /should/ have a package called lmce-install-scripts, which replaces pluto-install-scripts. See if

Code: [Select]
apt-get install lmce-core lmce-install-scripts

provides a solution.

If you *must* just have a working install, modify /var/lib/dpkg/info/lmce-core.postinst and put
Code: [Select]
Configure_NTP_Server || :
in line 99.

But I would appreciate, if you first tried the apt-get.

maverick0815

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 858
    • View Profile
Re: Lmce-core update error
« Reply #5 on: May 15, 2017, 09:54:01 pm »
I do think its better to go through the paces...this usually brings about a solid solution, so here is the result:
Quote
login as: linuxmce
linuxmce@dcerouter's password:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-117-generic i686)

 * Documentation:  https://help.ubuntu.com/

*** System restart required ***
Last login: Mon May 15 19:04:34 2017 from 192.168.80.196
linuxmce@dcerouter:~$ sudo su
[sudo] password for linuxmce:
dcerouter_1047595:/home/linuxmce# apt-get install lmce-core lmce-install-scripts
Reading package lists... Done
Building dependency tree
Reading state information... Done
lmce-core is already the newest version.
lmce-install-scripts is already the newest version.
lmce-install-scripts set to manually installed.
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-core (2.0.0.47.201705131307+14f85ee9) ...
Mo 15. Mai 21:51:28 CEST 2017 - Updating /etc/pluto.conf (if required)
/var/lib/dpkg/info/lmce-core.postinst: line 99: Configure_NTP_Server: command no                                                                                                                                  t found
dpkg: error processing package lmce-core (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 lmce-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
dcerouter_1047595:/home/linuxmce#
it says above "System restart required" but I'd hold off on that until you tell me its okay to do so.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #6 on: May 15, 2017, 10:14:06 pm »
System restart is required has to do with the fact, that you probably installed a new kernel as well.

Question: Did you do apt-get upgrade first, or did you directly run apt-get dist-upgrade

maverick0815

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 858
    • View Profile
Re: Lmce-core update error
« Reply #7 on: May 16, 2017, 06:19:28 am »
I always do a apt-get update before the dist-upgrade.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #8 on: May 16, 2017, 11:28:54 am »
apt-get up*grade* - of course you first do an up*date, but after that, do you do an upgrade or dist-upgrade?

maverick0815

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 858
    • View Profile
Re: Lmce-core update error
« Reply #9 on: May 16, 2017, 03:58:36 pm »
:-) I understand that.
I do an apt-get update and then apt-get dist-upgrade, just as it states on the wiki-page

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #10 on: May 16, 2017, 05:30:53 pm »
Ok. Thanks.

You didn't answer my question if this is an older install. Is it?

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #11 on: May 16, 2017, 06:08:26 pm »

Nevermind, I think I found the issue.

Please do another apt-get update and apt-get upgrade and see if that fixes the issue. If it doesn't, do
Code: [Select]
apt-get install --reinstall lmce-core lmce-install-scripts
but as always, try the regular apt-get update / upgrade first.

Thanks

maverick0815

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 858
    • View Profile
Re: Lmce-core update error
« Reply #12 on: May 16, 2017, 07:09:04 pm »
apt-get upgrade was working...everything is peachy :-)
Thank you very much!

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Lmce-core update error
« Reply #13 on: May 16, 2017, 09:46:15 pm »
You are welcome.