You are not logged in.

#1 2012-03-29 13:04:27

Archdove
Member
Registered: 2011-09-23
Posts: 118

[SOLVED] qt update - file conflicts - breaks Virtualbox

Hi

I did recently an update which involved qt. This broke my Virtualbox installation which ist pretty bad as i need it for school.
Doing a pacman -U qt will give me lots of messages like:


/usr/share/qt/translations/qt_pl.qm exists in filesystem
qt: /usr/share/qt/translations/qt_pt.qm exists in filesystem
qt: /usr/share/qt/translations/qt_ru.qm exists in filesystem
qt: /usr/share/qt/translations/qt_sk.qm exists in filesystem
qt: /usr/share/qt/translations/qt_sl.qm exists in filesystem

Endling with. "No packages updated".

The pacman Wiki wants me to check the owner for each file which is not practicable becouse of the number of files.

So what do i do?

Thanks.

Last edited by Archdove (2012-03-29 15:22:45)

Offline

#2 2012-03-29 13:27:14

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

Maybe do a pacman -R qt, forcing if necessary? Then reinstall it?

But what do you mean by "broke" anyway?

Offline

#3 2012-03-29 13:43:05

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

Sorry for beeing unprecise:

Broken means i get this message when starting Virtualbox:

~]$ virtualbox
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /usr/lib/libQtCore.so.4: file too short

Offline

#4 2012-03-29 13:45:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

If the output of

stat -c %s $(find /var/lib/pacman/local -name "qt-*")/files

is '0' (zero) or you get an error saying 'No such file or directory', run

pacman -Sf qt

to reinstall qt.

Offline

#5 2012-03-29 13:59:46

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

I assume pacman was asking you to check for files not owned by root.  There are ways to make the computer do all the work for you and return a result in a few seconds.  But in this case I think it's pointless.

Last edited by alphaniner (2012-03-29 14:00:56)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2012-03-29 14:08:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

alphaniner wrote:

I assume pacman was asking you to check for files not owned by root.  There are ways to make the computer do all the work for you and return a result in a few seconds.  But in this case I think it's pointless.

What are you referring to?

Offline

#7 2012-03-29 14:18:55

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

You mean the 'ways' I mentioned?  I just meant one could create a compound command to pull out all the filenames from the error message and print out any that aren't owned by root.  I pieced together a kludge using pacman -Ql, but didn't post it because it would generally be overkill:

grep -v "root" < <(pacman -Ql qt |awk '{print $2}' |while read i;do [[ "$i" =~ /$ ]] || ls -l "$i" ;done)

It also filters out all directories including those that are unique to the package, which is another shortcoming.

Last edited by alphaniner (2012-03-29 14:21:00)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#8 2012-03-29 14:27:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

Ah, now I get it :-) Indeed, it helps, but doesn't actually fix anything.

Offline

#9 2012-03-29 15:22:29

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

So Pacman -Rf qt dit the trick. Altough i did try it before an it did nothing.
Thanks for helping me out!

Offline

#10 2012-03-29 15:35:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

Archdove wrote:

So Pacman -Rf qt dit the trick.

[karol@black ~]$ pacman -Rf qt
error: invalid option

Weird, it doesn't work for me.

Offline

#11 2012-03-29 17:25:22

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

Yes karol

Because it's actually pacman -Sf qt

Sorry for that...

Offline

#12 2012-03-30 12:11:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] qt update - file conflicts - breaks Virtualbox

That's what I thought :-)

Offline

Board footer

Powered by FluxBB