myth-tv failed to upgrade properly on distribution upgrade

Bug #126781 reported by Janne
2
Affects Status Importance Assigned to Milestone
mythtv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mythtv

Distribution upgrade from xubuntu 6.10 to xubuntu 7.04

ProblemType: Package
Date: Wed Jul 18 18:49:16 2007
ErrorMessage:
 ErrorMessage: dependency problems - leaving unconfigured
Package: mythtv
SourcePackage: mythtv

Revision history for this message
Mario Limonciello (superm1) wrote :

Hi, Thanks for reporting this bug.

Can you provide some more information about what packages weren't able to be upgraded?

I would suspect this was because you didn't have universe or multiverse enabled. After the upgrade, try to type

sudo apt-get install mythtv

And post the output back here.

Changed in mythtv:
status: New → Incomplete
Revision history for this message
Janne (janne-metso) wrote :
Download full text (3.4 KiB)

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-svn200...

Read more...

Revision history for this message
Mario Limonciello (superm1) wrote :

Okay - this points out what It likely is.

Xubuntu doesn't use update-notifier does it?

Check and see if you ahve it installed.

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

Reinstalling mysql 5.0 has solved the problem. After that the mythtv packets install behaved and I can log into mysql with user root and without password. Just as a suggestion, maybe the password could be prompted if the login to mysql doesn't work without a password.

Sorry for the inconvenience.

And no, Xubuntu does not have update-notifier installed by default (installing it right away).

Revision history for this message
Mario Limonciello (superm1) wrote :

I think I might look into doing a stable release update for 6.10 possibly to add update-notifier to dependencies to prevent this from happening. It's been fixed in 7.04 already.

Revision history for this message
Mario Limonciello (superm1) wrote :

This has been included in the latest proposed update. Once it's released to edgy and feisty, i'll close this bug.

Changed in mythtv:
status: Incomplete → Fix Committed
Changed in mythtv:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.