Errors with php5-cli on upgrade to AL 3.4

3 posts / 0 new
Last post
#1 Sat, 2016-06-18 14:37
bootrecords
  • bootrecords's picture
  • Offline
  • Last seen: 2 months 3 weeks ago
  • Joined: 2016-01-03

After upgrading to version 3.4, I received an apk error when trying to upgrade the php5-cli package:

# apk fix
(1/1) Reinstalling php5-cli (5.6.21-r2)
ERROR: php5-cli-5.6.21-r2: trying to overwrite usr/bin/phpize owned by php-cli-5.6.21-r0.
ERROR: php5-cli-5.6.21-r2: trying to overwrite usr/bin/php owned by php-cli-5.6.21-r0.

This error message is rather confusing, since both of these files are owned by root and (since I'm executing apk as root), this shouldn't pose a problem, or am I misunderstanding something here?
I can't even remove or purge the faulty package (or most php-related packages, in fact) in order to cleanly reinstall this one, which is rather annoying since as long as this problem persists, my php does not seem to work properly.

Any suggestions?

Sat, 2016-06-18 14:58
AmatCoder
  • AmatCoder's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2013-10-18

php-* packages were renamed to php5-* so you need to remove the former to install the latter.

Sat, 2016-06-18 15:01
bootrecords
  • bootrecords's picture
  • Offline
  • Last seen: 2 months 3 weeks ago
  • Joined: 2016-01-03

apk del php-* seems to have worked. The package php remains, though, and still can't be removed. But at least the previous errors are gone. Thanks for the help!

Log in or register to post comments