Comment 2 for bug 126781

Revision history for this message
Janne (janne-metso) wrote :

I have everything else enabled except source code, so I don't think that is the problem.

From the distro upgrade logs (/var/log/dist-upgrade/) I deduct that the problem is caused by the fact that I've changed the password, the security paranoid that I am, for root in mysql database from nothing to something else.

Anyway, the details:

The packages that failed to install are:
mythtv-database (couldn't be configured because of failed connection to mysql db)
mythtv (depends on mythtv-database)

relevant bits from the end of the attached (/var/log/dist-upgrade/term.log) log:
Errors were encountered while processing:
 mythtv-database
 mythtv
Traceback (most recent call last):
  File "logging/__init__.py", line 740, in emit
  File "logging/__init__.py", line 718, in flush
IOError: [Errno 9] Bad file descriptor
feisty: Fatal IO error 9 (Bad file descriptor) on X server :0.0.
Setting up mythtv-database (0.20-svn20070122-0.0ubuntu6) ...
Failed to connect to database: Access denied for user 'root'@'localhost' (using
password: NO) at -e line 5, <> line 1.
Failed to create database (incorrect admin username/password?)
It's also possible that mysql-server wasn't running. After install
is completed, you will need to make sure mysql-server is running
and that you supplied correct information. Try:
sudo dpkg-reconfigure mythtv-database
cp: cannot create regular file `/var/lib/update-notifier/user.d/mythtv-reconfigu
re-required': No such file or directory
dpkg: error processing mythtv-database (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mythtv:
 mythtv depends on mythtv-database (= 0.20-svn20070122-0.0ubuntu6); however:
  Package mythtv-database is not configured yet.
dpkg: error processing mythtv (--configure):
 dependency problems - leaving unconfigured

Output from sudo apt-get install mythtv
Reading package lists... Done
Building dependency tree
Reading state information... Done
mythtv is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.17-11-generic linux-headers-2.6.17-11
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up mythtv-database (0.20-svn20070122-0.0ubuntu6) ...
Failed to connect to database: Access denied for user 'root'@'localhost' (using password: NO) at -e line 5, <> line 1.
Failed to create database (incorrect admin username/password?)
It's also possible that mysql-server wasn't running. After install
is completed, you will need to make sure mysql-server is running
and that you supplied correct information. Try:
sudo dpkg-reconfigure mythtv-database
cp: cannot create regular file `/var/lib/update-notifier/user.d/mythtv-reconfigure-required': No such file or directory
dpkg: error processing mythtv-database (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mythtv:
 mythtv depends on mythtv-database (= 0.20-svn20070122-0.0ubuntu6); however:
  Package mythtv-database is not configured yet.
dpkg: error processing mythtv (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mythtv-database
 mythtv
E: Sub-process /usr/bin/dpkg returned an error code (1)