The forum

Ubuntu 13.04 apt db corruption

Author Replies
Alex64k Thursday 2 May 2013 at 0:47
Alex64kAnonymous

I wanted to point out a couple of problems i had:

The PlayOnLinux 4.1.1 contained in the official Ubuntu repository has a bug (a malformatted rm -rf that doesn't work, duplicating a virtual drive) that comes up when you hit the "Configure WINE" button from the configuration dialog (the one showing all the wine drives).

I tried to install the latest version using the.deb package you find here but it corrupted my package db. I don't really remember the error so well, but after i installed it, every dpkg/apt-get operation gave me an error that had to do with the dbus daemon not being reachable due to a missing parameter (the error was prefixed with gtk-warning or similar).

I had just formatted, and i thought POL had nothing to do with the error, so i formatted again and the second time i decided to use the little script that is quoted in the page, instead of using the .deb package.
Before starting the procedure, i made a backup copy of my /var and /etc/apt folder, then (using the script provided in the download page) i installed the key, added the POL sources.list to apt, updated and installed playonlinux (not manually, as i said i followed the script in the page. The issue came back again, and i managed to fix it (i removed it with apt-get, removed the key and the repo, replaced /var and /etc/apt with my backups).

When i installed the .deb the first time, there was no way for me to fix that error (i tried apt-get -f install, removed the package, updated and then rebooted, but dpkg and apt-get kept giving me errors).

Both times i installed Ubuntu 13.04 x64 using the "mini.iso" disk image, then i installed kde-full.  One more thing, i don't know if it's POL's fault or Qt's, but several dialogs are not readable when using dark themes (like with the standard theme Obsidian Coast).

Screenshots

Thanks again for developing this great software!

Edited by Alex64k

Ronin DUSETTE Thursday 2 May 2013 at 1:08
Ronin DUSETTE
Admin

I have dark themes in KDE, like yours, and its just the theme.

That version is REALLY out of date, and I dont know why Ubuntu hasnt updated it in their repos. We dont support it anymore, and it shouldnt be used. Apparently, you can add the repos that we have listed into 13.04, and they should work, but the deb should work no matter what.

Now, that notwithstanding, it very well could be something that was caused by not setting up that minimal install right. Not saying that you did, but mine is build with the 12.04.2 minimal install, with pure KDE, and its fine and dandy. I think it may have just been a fluke.

Regardless, Anytime something like this happens, you want to completely remove POL via your package manager, and (after backing up your games if needed!) remove ~/.PlayOnLinux/

Then reinstall POL from the newest version on our download page.

Keep in mind that ANY Ubuntu release that is NOT an LTS, like 8.04, 10.04, and 12.04, should be considered beta, as they are not always stable, and are mostly experimental, regardless of their class as being finished products. I see more problems with non-LTS releases than LTS when it comes to Ubuntu. Just something to keep in mind. (im probably going to start a flame war with that one. lol)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Thursday 2 May 2013 at 1:11
Ronin DUSETTE
Admin

All of that package manager stuff..... Id be willing to bet that it has to do something with that build or incomplete installs/downloads of packages (or maybe how apt-get is dealing with broken packages?) Idont know.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Alex64k Thursday 2 May 2013 at 2:30
Alex64kAnonymous

I tried again and i can easily re-produce it. This is the error:

root@ubuntu:~/Desktop# dpkg -i PlayOnLinux_4.2.1.deb
(Reading database ... 140468 files and directories currently installed.)
Preparing to replace playonlinux 4.1.1-1 (using PlayOnLinux_4.2.1.deb) ...
Unpacking replacement playonlinux ...
Setting up playonlinux (4.2.1) ...
gconf-schemas is /usr/sbin/gconf-schemas
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for gconf2 ...

(gconftool-2:3357): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.

The following errors comes up constantly now. I made a backup of my system folders again so now i can try to restore it and fix this error. If i don't do that, there is no way for me to fix this error using apt or dpkg. (as i written already last time i had to re-format).

I know i can rule out a broken system; my connection is very stable (10mbit both downlaod and upload) and it's nearly impossible that i had 3 corrupted systems in a row.

This is the output of dpkg --get-selections: http://pastebin.com/VG6RCe7q

I am not using additional repositories; external software i installed (via .deb files): skype and steam.

Edited by Alex64k

Alex64k Monday 6 May 2013 at 10:07
Alex64kAnonymous

bump: anyone having more information about this issue?
Ronin DUSETTE Monday 6 May 2013 at 17:36
Ronin DUSETTE
Admin

It has to be something that you are doing or the way your system is set up, because I have never seen a gconf error like this when installing it.

Hows about, completely remove POL, and reinstall using the package manager (install the repos in the Download section or install the DEB in the package manager).


Both times i installed Ubuntu 13.04 x64 using the "mini.iso" disk image, then i installed kde-full.

Quote


Id be willing to bet my next paycheck that you are building your system wrong. No offense, but that is the only thing that sticks out in your posts.

You need to try a regular version of Kubuntu (not a mini.iso build with KDE full). Just a regular Kubuntu 12.04.2 download (ONLY install LTS versions). The combo of 13.04 mini and however youre building it has to be breaking something on the system.

So, yeah. Try Kubuntu 12.04.2 LTS, not mini.iso, and try again. It should work like that.

Edited by RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Monday 6 May 2013 at 19:22
petch
Developer

I'm not sure, but I don't see a problem of "db corruption" here, and quite probably nothing related directly to PlayOnLinux either.

What seems to be happening is that some recently installed package modified gconf configuration files, and the handling has been deferred to gconf triggers, that handle those changes in batches.
Problem is, the trigger tries to run some GUI, and since you switched to root user, it doesn't have access to the X server (nor your D-Bus session), and fails.
Since deferred work failed, its kept for later tries.

I'm not sure it will work, but personally at that point I'd try a gksu apt-get -f install or gksudo apt-get -f install as your normal user.
gksu and gksudo do what's necessary to run a program as root yet keep X server access.

Edited by petch

Alex64k Tuesday 7 May 2013 at 2:21
Alex64kAnonymous

I am not building any system, just download the ubuntu server iso, press F4, select "minimal install", press enter, when you're up and running install kde-full. It's the same as the mini.iso install and it's not some alien configuration, it's just a normal ubuntu. I know the package is missing curl from the dependencies, is it missing anything else you assume must be always installed? As i said before, the error comes up if and only if i install POL from either the .deb file or from the repository. As soon as i remove it, the error goes away. I am sure it's POL causing the issue, i'm trying to understand why and how. Have you got any lead that might help me out?
Ronin DUSETTE Tuesday 7 May 2013 at 3:03
Ronin DUSETTE
Admin

I didnt say that it did. I just said that if not put together correctly, a mini.iso build can cause issues down the line, plus youre running an experimental linux version.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Alex64k Tuesday 7 May 2013 at 3:21
Alex64kAnonymous

I'm sorry but it's hardly possible to put it together in a wrong way, since it's all automated by aptitude. And i'm pretty sure Canonical tests the ubuntu server installation disk, which means they have tested the minimal install procedure (documented and supported).

Now if you are too busy and don't have the time to help me debug the problem it's ok, i can understand, but please stop blaming the installation because it's neither custom nor "put together" by me. It's using the standard apt-get install procedure that canonical has designed and you also support with your repository. Also, the fact that installing POL gives the issue and uninstall it fixes it clearly means it's something inside the .deb package.

Again, i'm grateful for your support and your efforts, but you're kind of not showing any respect toward me since you keep implying it's my fault or making up that it's the installation (which, by the way, not only runs completely fine, but i've also tested this more than 4 times on 4 different systems - so i can say once again that you should rule out a broken system case).

As a side note, you can get a similar system with the standard disk just by uninstalling the meta-package ubuntu-desktop/xubuntu-desktop/kubuntu-desktop and install kde-full/xfce4/gnome.
If something is missing, then the .deb should contain the dependency and make aptitude install the rest but it's crearly not working (again, like with curl).

@petch: then it's POL that triggers the gconf configuration files, because in my tests it's the POL .deb file that causes the problems. Can that warning be ignored?

edit: nevermind, i'll try to fix it myself, thanks for your help

Edited by Alex64k

Ronin DUSETTE Tuesday 7 May 2013 at 4:12
Ronin DUSETTE
Admin

but please stop blaming the installation because it's neither custom nor "put together" by me.

Quote

Why dont you try a fresh Kubuntu 12.04.2 LTS install, from the actual cd (not mini.iso) in a virtual machine? VirtualBox will save you from installing it on a computer that you use. Have you tried to install it from a regular version of 13.04 too? Not a mini.iso 13.04??


I'm sorry but it's hardly possible to put it together in a wrong way, since it's all automated by aptitude. And i'm pretty sure Canonical tests the ubuntu server installation disk, which means they have tested the minimal install procedure (documented and supported).

Quote


13.04 is an experimental version. LTS releases are not. There are bugs. It happens. I see them all of the time from Ubuntu Unity, as well.


Now if you are too busy and don't have the time to help me debug the problem it's ok, i can understand, but please stop blaming the installation because it's neither custom nor "put together" by me. It's using the standard apt-get install procedure that canonical has designed and you also support with your repository.

Quote


Nice attitude.....

Canonical did not invent apt-get, and apt-get is just package management. The people that put the repos together are humans, and in experimental repos, they have more issues than LTS versions.


Also, the fact that installing POL gives the issue and uninstall it fixes it clearly means it's something inside the .deb package.

Quote


So far, you are the only user I have seen report this, and you are using a non-standard build. I know it can be an issue, because I have run into issues like this when putting together an OS from the mini.iso. Im not guessing; Ive wasted many hours working on stuff, only to reinstall to a regular LTS version and have it work as it should.


Again, i'm grateful for your support and your efforts, but you're kind of not showing any respect toward me since you keep implying it's my fault or making up that it's the installation

Quote


Look, dude. Im not implying anything; simply offer a suggestion on what can be causing it, from experience.


(which, by the way, not only runs completely fine, but i've also tested this more than 4 times on 4 different systems - so i can say once again that you should rule out a broken system case).

Quote


Its obviously not completely fine, otherwise we wouldnt be having this conversation. haha. :)

Did you do mini.iso installs or 13.04 installs on those other ones that you tested? Again, you are the only user that has this problem at all.

For example, the following systems I have install PlayOnLinux on, from either deb or repo, work as prescribed:

mini.iso 12.04.2 LTS 64 bit with KDE pure
Kubuntu 12.04.2 LTS 64 bit (just regular kubuntu)
Ubuntu 12.04.2 LTS 64 bit (replaced Unity with Cinnamon)
Xubuntu 12.04.2 LTS 32 bit (my friends music laptop)
Ubuntu 12.04 LTS 32 bit with gnome-panel

And quite a few others. The only time I have seen issues like what you are showing is when I first tried to build my OS from mini.iso, and learned that its harder than it looks at first.

Notice that there are 2 different packages. kubuntu-desktop and kde-full. kubuntu-desktop is designed to run with the Ubuntu kernel releases, among other things.


If something is missing, then the .deb should contain the dependency and make aptitude install the rest but it's crearly not working (again, like with curl).

Quote


Any time that installing a deb from the command line does not work because of missing deps, you need to use:

[code]
sudo apt-get -f install
[/code]

to clean up those missing dependencies. Also, curl not being in the dep list is a known issue, and will be fixed, but you can install it very easy.

Edited by RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Tuesday 7 May 2013 at 4:19
Ronin DUSETTE
Admin

Also, the fact that installing POL gives the issue and uninstall it fixes it clearly means it's something inside the .deb package.

Quote


A very common cause of broken future installs can be broken installs. Lets say your internet goes down right in the middle of an install; the next time you install, there will be errors most of the time. Just FYI. :)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Tuesday 7 May 2013 at 7:25
petch
Developer

You'd better not install standalone packages using dpkg -i, because it's a too low level tool: if you ask it to install a package it will, but not fetch nor install required dependencies as needed.
If you really don't want to go the full "add PoL repository, use apt-get" way, have a look at gdebi (gdebi-core, for command-line usage), this one will take care of the dependencies.
Maybe it's the root issue, but it's hard to tell.