Hi everyone.
I can't apply the latest updates owing to file conflicts.

sudo Pavman -Syu gives the following

:: Proceed with installation? [Y/n] y
(179/179) checking keys in keyring                                           [--------------------------------------------] 100%
(179/179) checking package integrity                                         [--------------------------------------------] 100%
(179/179) loading package files                                              [--------------------------------------------] 100%
(179/179) checking for file conflicts                                        [--------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/Button.qmlc exists in filesystem
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/CheckBox.qmlc exists in filesystem
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/ComboBox.qmlc exists in filesystem
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/Label.qmlc exists in filesystem
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/Menu.qmlc exists in filesystem
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/Private/AbstractCheckable.qmlc exists in filesystem
.
.
. and a pile more in the same location......
.
.
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/ToolBar.qmlc exists in filesystem
qt5-quickcontrols: /usr/lib/qt5/qml/QtQuick/Controls/ToolButton.qmlc exists in filesystem
Errors occurred, no packages were upgraded.

I checked to see what packages the dependencies are owned by...

[john@kaos_ssd ~]$ pacman -Qo /usr/lib/qt5/qml/QtQuick/Controls/
/usr/lib/qt5/qml/QtQuick/Controls/ is owned by breeze 5.9.5.1-1
/usr/lib/qt5/qml/QtQuick/Controls/ is owned by plasma-framework 5.34.0-1
/usr/lib/qt5/qml/QtQuick/Controls/ is owned by qt5-quickcontrols 5.8.0-1

...so can't really uninstall, upgrade, and re-install!...!

Any thoughts please.

Thanks
JJ

johnjark changed the title to qt5-quickcontrols: File conflict on upgrade .

Don't check what owns a file by checking some directories.
Use the full path of a file with pacman -Qo
Example:

pacman -Qo /usr/lib/qt5/qml/QtQuick/Controls/ToolBar.qmlc
/usr/lib/qt5/qml/QtQuick/Controls/ToolBar.qmlc is owned by qt5-quickcontrols 5.9.0-1

Looks though like you have a broken qt5-quickcontrols in your system. pacman cannot properly see the files of that package.

Post the output of pacman -Qi qt5-quickcontrols

When i tried to upgrade a couple of days ago i got the exact same message. Somewhere, something must have been broken on the way.

The output from pacman -Qi qt5-quickcontrols;

pacman -Qi qt5-quickcontrols
Namn             : qt5-quickcontrols
Version          : 5.8.0-1
Description      : A cross-platform application and UI framework, QtControls
Architecture     : x86_64
URL              : http://qt.nokia.com/
Licenses         : GPL3  LGPL
Groups           : qt5
Provides         : Ingen
Depends On       : qt5-declarative
Optional Deps    : Ingen
Required By      : kdeconnect-kde  plasma-framework
Optional For     : Ingen
Conflicts With   : Ingen
Replaces         : Ingen
Installed Size   : 3,55 MiB
Packager         : Anke Boersma <demm@kaosx.us>
Build Date       : mån 23 jan 2017 18:48:16
Install Date     : tis 31 jan 2017 11:39:44
Install Reason   : Installerad som beroende för ett annat paket
Install Script   : Nej
Validated By     : SHA-256 Sum

If i check who own some of the files, i get that the file isn't owned by any package.

[zynex@T-Z30 ~]$ pacman -Qo /usr/lib/qt5/qml/QtQuick/Controls/Button.qmlc
fel: Inget paket äger /usr/lib/qt5/qml/QtQuick/Controls/Button.qmlc

Some quick translate from Swedish; "fel: Inget paket äger" translates to "error: no package owns" 🙂

I found a solution to the problem that worked for me.

First, rename /usr/lib/qt5/qml/QtQuick folder to something different (like QtQuick.bak). Then update the system (upd, sudo pacman -Syyu or thru Octopi). Reboot and check that everything start as it should. Everything should work (the folder QtQuick will be recreated from the updated package). Remove the backup folder.

I'm not sure why lots of the files in marked as not owned by any packages before, but after this they are.

[zynex@T-Z30 ~]$ pacman -Qo /usr/lib/qt5/qml/QtQuick/Controls/Button.qmlc
/usr/lib/qt5/qml/QtQuick/Controls/Button.qmlc ägs av qt5-quickcontrols 5.9.0-1

This is the result now for the same file I wrote about in the last post. It's now owned by qt5-quickcontrols package.

Files not owned means at one point you installed with a broken database or forced an install.
You can try to reinstall such a package with conflicts, but most of the time the only proper way is to manually remove the conflicting files then update or reinstall the conflicting package.

This is why it is important to always check if you used mirror is synced before installing or updating any. That will pick up any discrepancies in your mirrors database.

In 90% of the cases I use the alias "upd" in the terminal, so the mirror is always synced. Something probably went wrong in the past that i didn't take note of. Anyway, deleting QtQuick folder got it working again 🙂

Many thanks guys,
Followed the advice from zynex and all has gone well.
Useful info on using -Qo option - however there were a shed load of files with problems so this was not my first option...

FYI - I never ever force an installation so not sure what the root cause of this issue was.

However all working again - just love kaos,
JJ

I checked a bit more on this, since this now clearly is a bug (1 sees an issue > user error, 2 > dsitro/upstream bug).

There is a change how those files are now created, in Qt 5.8 they were generated at runtime when you ran a QML application as root.
With Qt 5.9 they are build into the package.
Reason why so many do not see the issue is both of you must have run some QML app as root, will be hard to figure which app.....

It's hard to tell, but I usually don't run lots of apps as root. I do sometimes, mostly Dolphin (to update fx. VueScan), system settings or Xperia Flashtool. Could be some others in the past I don't remember 🙂

The only thing I did note is that after the latest update I got a lot of flickering and random UI freezes after 8-10 mins of use. Probably some settings that didn't run well after the update. After I recreated my home folder with fresh settings it worked without any problem again 🙂