Bug #78054 ls: cannot access /usr/share/pyshared/mysql: No such file or directory
Submitted: 13 Aug 2015 8:44 Modified: 12 Aug 2016 22:43
Reporter: Abel Flórez Loranca Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Utilities Severity:S3 (Non-critical)
Version:1.6.1 OS:Ubuntu (Ubuntu 14.04.3 LTS)
Assigned to: CPU Architecture:Any
Tags: pyshared, ubuntu

[13 Aug 2015 8:44] Abel Flórez Loranca
Description:
Installation fails:

# dpkg -i /home/ecas/mysql-utilities_1.6.1-1ubuntu14.04_all.deb 
(Reading database ... 60347 files and directories currently installed.)
Preparing to unpack .../mysql-utilities_1.6.1-1ubuntu14.04_all.deb ...
Unpacking mysql-utilities (1.6.1-1ubuntu14.04) over (1.6.1-1ubuntu14.04) ...
postrm script for mysql-utilities
foundpython2.7
/usr/lib/python2.7/dist-packages
ls: cannot access /usr/share/pyshared/mysql: No such file or directory
Setting up mysql-utilities (1.6.1-1ubuntu14.04) ...
postinst script for mysql-utilities
python2.7
found
python2.7
/usr/lib/python2.7/dist-packages
ERROR: /usr/share/pyshared/mysql not found, nothing to do.
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
#

This is Ubuntu:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty
#

How to repeat:
In a fresh Ubuntu installation, just run as root:

# dpkg -i /home/ecas/mysql-utilities_1.6.1-1ubuntu14.04_all.deb 

Suggested fix:
Modify the .deb package to create the /usr/share/pyshared/mysql directory.
[13 Aug 2015 9:42] MySQL Verification Team
Hello Abel,

Thank you for the report.
Verified as described on Ubuntu 14.04.3 LTS.

Thanks,
Umesh
[13 Aug 2015 9:43] MySQL Verification Team
//
ushastry@ushastry:~/Downloads$ md5sum mysql-utilities_1.6.1-1ubuntu14.04_all.deb 
c7c2aa064b09a0bbacd83851917324ee  mysql-utilities_1.6.1-1ubuntu14.04_all.deb

ushastry@ushastry:~/Downloads$ sudo dpkg -i mysql-utilities_1.6.1-1ubuntu14.04_all.deb 
(Reading database ... 258986 files and directories currently installed.)
Preparing to unpack mysql-utilities_1.6.1-1ubuntu14.04_all.deb ...
Unpacking mysql-utilities (1.6.1-1ubuntu14.04) ...
postrm script for mysql-utilities
foundpython2.7
/usr/lib/python2.7/dist-packages
ls: cannot access /usr/share/pyshared/mysql: No such file or directory
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 mysql-utilities_1.6.1-1ubuntu14.04_all.deb
ushastry@ushastry:~/Downloads$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.3 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
ushastry@ushastry:~/Downloads$
[12 Aug 2016 19:06] Chuck Bell
Pushed to release-1.6.5.
[12 Aug 2016 22:43] Philip Olson
Posted by developer:
 
Fixed as of the upcoming MySQL Utilities 1.6.5 release, and here's the changelog entry:

The DEB packages did not create the required /usr/share/pyshared/mysql
directory.

Thank you for the bug report.