[mythtv-users] failure on v31 mythplugins on clean install

Jim Abernathy jfabernathy at gmail.com
Sun Mar 15 12:14:23 UTC 2020


>>
>> As you may have found out, the problem is due to php not having been 
>> installed at the time mythweb.preinst is run, so 
>> CURRENT_PHP_VERSION=$(php -r 'echo PHP_MAJOR_VERSION, ".", 
>> PHP_MINOR_VERSION;') fails as php not found:
>>
>> Selecting previously unselected package mythweb.
>> Preparing to unpack 
>> .../123-mythweb_2%3a31.0+fixes.202003052109.7097da3~ubuntu18.04.1_all.deb 
>> ...
>> /var/lib/dpkg/tmp.ci/preinst: 7: /var/lib/dpkg/tmp.ci/preinst: php: 
>> not found
>> dpkg: error processing archive 
>> /tmp/apt-dpkg-install-LbyUJ4/123-mythweb_2%3a31.0+fixes.202003052109.7097da3~ubuntu18.04.1_all.deb 
>> (--unpack):
>>  new mythweb package pre-installation script subprocess returned 
>> error exit status 127
>> postrm called with unknown argument `abort-install'
>> dpkg: error while cleaning up:
>>  new mythweb package post-removal script subprocess returned error 
>> exit status 1
>>
>> command used sudo apt install mythtv mythplugins
>>
>> sudo apt --fix-broken install (run it twice) followed by sudo apt 
>> install mythplugins seems to resolve.
>>
>> I am not sure we even need mythweb.preinst to do anything as the only 
>> thing it does is move 20-mythweb.conf , which mythweb.postinst does 
>> anyway (but php should have been installed by this time)
>>
>>
>> Mike
>>
> Bill,
>
> Another thought.
>
> In mythweb.preinst add a test to check if php exists e.g. 'which php' 
> and only run CURRENT_PHP_VERSION=$(php -r 'echo PHP_MAJOR_VERSION, 
> ".", PHP_MINOR_VERSION;') if 'which' returns a good result.
>
>
> Mike

FYI, There have been a number of updates this week for mythtv v31-fixes 
on Ubuntu 18.04 so I did  mythtv mythtvplugins install on a fresh 
Xubuntu 18.04.4 system.

The error on mythweb still exist and the fix Mike mentions about sudo 
apt --fix-broken install (run it twice) followed by audo apt install 
mythplugins, still works.

Jim A




More information about the mythtv-users mailing list