[opensuse-factory] Move from /var/lib/rpm database to /usr/lib not completely succesfull?

After the upgrade of yesterday evening of Tumbleweed I noticed the move of RPM database to /usr/lib. However this morning after the first startup the package manager started to check for new updates/upgrades. There were 3 updates, so I permitted them. However I got the following error message: Subprocess failed. Error: RPM failed: warning: waiting for exclusive lock on / var/lib/rpm/Packages error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db4 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On 8 November 2017 at 10:53, Freek de Kruijf <freek@opensuse.org> wrote:
After the upgrade of yesterday evening of Tumbleweed I noticed the move of RPM database to /usr/lib.
However this morning after the first startup the package manager started to check for new updates/upgrades. There were 3 updates, so I permitted them. However I got the following error message:
Subprocess failed. Error: RPM failed: warning: waiting for exclusive lock on / var/lib/rpm/Packages error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db4 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm
You say "the package manager" - which package manager? I'm not able to reproduce what you're reporting with zypper or YaST, example below: The following package is going to be upgraded: libquicktime0 1 package to upgrade. Overall download size: 0 B. Already cached: 189.0 KiB. No additional space will be used or freed after the operation. Continue? [y/n/...? shows all options] (y): y In cache libquicktime0-1.2.4cvs20150223-13.1.x86_64.rpm (1/1), 189.0 KiB (565.3 KiB unpacked) Checking for file conflicts: ...................................................................................[done] (1/1) Installing: libquicktime0-1.2.4cvs20150223-13.1.x86_64 ...................................................[done] -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Op woensdag 8 november 2017 13:24:29 CET schreef Richard Brown:
On 8 November 2017 at 10:53, Freek de Kruijf <freek@opensuse.org> wrote:
After the upgrade of yesterday evening of Tumbleweed I noticed the move of RPM database to /usr/lib.
However this morning after the first startup the package manager started to check for new updates/upgrades. There were 3 updates, so I permitted them. However I got the following error message:
Subprocess failed. Error: RPM failed: warning: waiting for exclusive lock on / var/lib/rpm/Packages error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db4 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm
You say "the package manager" - which package manager?
I'm not able to reproduce what you're reporting with zypper or YaST, example below:
The following package is going to be upgraded: libquicktime0
1 package to upgrade. Overall download size: 0 B. Already cached: 189.0 KiB. No additional space will be used or freed after the operation. Continue? [y/n/...? shows all options] (y): y In cache libquicktime0-1.2.4cvs20150223-13.1.x86_64.rpm (1/1), 189.0 KiB (565.3 KiB unpacked) Checking for file conflicts: ............................................................................ .......[done] (1/1) Installing: libquicktime0-1.2.4cvs20150223-13.1.x86_64 ...................................................[done]
The package manager which is present as an icon in the system tray of a Plasma desktop. I assume this is the front-end of the package PackageKit. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On 8 November 2017 at 13:42, Freek de Kruijf <freek@opensuse.org> wrote:
You say "the package manager" - which package manager?
I'm not able to reproduce what you're reporting with zypper or YaST, example below:
The following package is going to be upgraded: libquicktime0
1 package to upgrade. Overall download size: 0 B. Already cached: 189.0 KiB. No additional space will be used or freed after the operation. Continue? [y/n/...? shows all options] (y): y In cache libquicktime0-1.2.4cvs20150223-13.1.x86_64.rpm (1/1), 189.0 KiB (565.3 KiB unpacked) Checking for file conflicts: ............................................................................ .......[done] (1/1) Installing: libquicktime0-1.2.4cvs20150223-13.1.x86_64 ...................................................[done]
The package manager which is present as an icon in the system tray of a Plasma desktop. I assume this is the front-end of the package PackageKit.
-- fr.gr.
member openSUSE Freek de Kruijf
I can confirm that packagekit behaves fine (logs below) Therefore I have two theories 1- A bug that is specific to KDE's wrapper around PackageKit - it's theoretically possible Plasma's frontend is doing something stupid 2- User error - are you sure you didn't have any other rpm tools accessing the database at the time? zypper? YaST - the error could very easily be a perfectly valid "I cant access the database because it's locked" warning -- /usr/bin/pkcon install pink-pony Resolving [=========================] Querying [=========================] Testing changes [=========================] Finished [ ] (0%) The following packages have to be installed: libIL1-1.7.8-6.1.x86_64 A full featured cross platform image library libIexMath-2_2-12-2.2.0-2.2.x86_64 Exception-based vector/matrix library for OpenEXR libImath-2_2-12-2.2.0-2.2.x86_64 Vector/matrix library for OpenEXR libSDL_mixer-1_2-0-1.2.12-8.8.x86_64 Simple DirectMedia Layer – Sound mixer library libglfw2-2.7.6-1.8.x86_64 Portable framework for OpenGL application development libmikmod3-3.3.7-1.8.x86_64 MikMod Sound Library pink-pony-1.4.1-1.11.x86_64 3D racing game with ponies pink-pony-data-1.4.1-1.11.noarch 3D racing game with ponies - data files Proceed with changes? [N/y] y [=========================] Installing [=========================] Waiting for authentication [=========================] Starting [=========================] Refreshing software list [=========================] Querying [=========================] Resolving dependencies [=========================] Installing packages [=========================] Downloading packages [=========================] Installing packages [=========================] Finished [=========================] -- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Op woensdag 8 november 2017 13:59:03 CET schreef Richard Brown:
On 8 November 2017 at 13:42, Freek de Kruijf <freek@opensuse.org> wrote:
You say "the package manager" - which package manager?
I'm not able to reproduce what you're reporting with zypper or YaST, example below:
The following package is going to be upgraded: libquicktime0
1 package to upgrade. Overall download size: 0 B. Already cached: 189.0 KiB. No additional space will be used or freed after the operation. Continue? [y/n/...? shows all options] (y): y In cache libquicktime0-1.2.4cvs20150223-13.1.x86_64.rpm
(1/1), 189.0 KiB (565.3 KiB unpacked)
Checking for file conflicts: ......................................................................... ... .......[done] (1/1) Installing: libquicktime0-1.2.4cvs20150223-13.1.x86_64 ...................................................[done]
The package manager which is present as an icon in the system tray of a Plasma desktop. I assume this is the front-end of the package PackageKit.
-- fr.gr.
member openSUSE Freek de Kruijf
I can confirm that packagekit behaves fine (logs below)
Therefore I have two theories
1- A bug that is specific to KDE's wrapper around PackageKit - it's theoretically possible Plasma's frontend is doing something stupid 2- User error - are you sure you didn't have any other rpm tools accessing the database at the time? zypper? YaST - the error could very easily be a perfectly valid "I cant access the database because it's locked" warning
When PackageKit went wrong, after that I did a zypper dup, which went OK. At the moment of the error I did not start or use any other thing to update the packages. Right after starting my desktop and plasma I saw the icon active in the system tray. Shortly after that I got the message about 3 packages waiting to be updated. So I acknowledged the update action, which resulted in the error message. I did the same you did with pink-pony, and it went OK. At that moment there was a new message that two packages waited for updating with that icon in the system tray. Acknowledging it went OK now. So maybe a temporary glitz, which is resolved now? Will come back when it reappears. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Op woensdag 8 november 2017 13:42:51 CET schreef Freek de Kruijf:
Op woensdag 8 november 2017 13:24:29 CET schreef Richard Brown:
On 8 November 2017 at 10:53, Freek de Kruijf <freek@opensuse.org> wrote:
After the upgrade of yesterday evening of Tumbleweed I noticed the move of RPM database to /usr/lib.
However this morning after the first startup the package manager started to check for new updates/upgrades. There were 3 updates, so I permitted them. However I got the following error message:
Subprocess failed. Error: RPM failed: warning: waiting for exclusive lock on / var/lib/rpm/Packages error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db4 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm
You say "the package manager" - which package manager?
I'm not able to reproduce what you're reporting with zypper or YaST, example below:
The following package is going to be upgraded: libquicktime0
1 package to upgrade. Overall download size: 0 B. Already cached: 189.0 KiB. No additional space will be used or freed after the operation. Continue? [y/n/...? shows all options] (y): y In cache libquicktime0-1.2.4cvs20150223-13.1.x86_64.rpm
(1/1), 189.0 KiB (565.3 KiB unpacked)
Checking for file conflicts: .......................................................................... .. .......[done] (1/1) Installing: libquicktime0-1.2.4cvs20150223-13.1.x86_64 ...................................................[done]
The package manager which is present as an icon in the system tray of a Plasma desktop. I assume this is the front-end of the package PackageKit.
Don't use the applet, use zypper dup only. i -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Freek de Kruijf
-
Knurpht - Gertjan Lettink
-
Richard Brown