Trying to understand zypper and/or package documentation, because 'zypper dup' wants to remove 'vracrypt'

Hi everyone!

Today, when I wanted to run ‘zypper dup’ I noticed that zypper wants to remove ‘veracrypt’.
Unfortunately, there is no explanation given as to the why.
I have ‘security’ in my repos, and this is still where veracrypt resides. I also checked that the vendor is obs.
I also checked what I understand to be the documentation for this package, but there is no info about any change.

After running ‘zypper up’ and then trying ‘zypper dup’, the only thing left is removal of ‘veracrypt’, everything else is up to date.

Somewhat funny: during ‘zypper up’ the package ‘veracrypt-lang’ got updated.

Now, if this was just some random package, for science I would remove it and see what happens, but unfortunately that’s not an option.

On a different machine, I just changed from Tumbleweed to Slowroll. There, ‘zypper dup’ upgrades ‘veracrypt’…

So, on the one hand I’d like to know whether there are some resources/commands that would be helpful in such a situation.
On the other hand, of course, I’d like to know what’s going on with veracrypt :slight_smile:

Thanks!

Without any facts one can just guess…
Simply show the complete output from

zypper lr -d

and

zypper dup

and

zypper se -si veracrypt*

Post the terminal output here using the preformatted text tags </> in the forum editor…

1 Like

Of, course!

zypper lr -d

#  | Alias                                | Name                                   | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                    | Service
---+--------------------------------------+----------------------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------------------------------------+--------
 1 | brave-browser                        | Brave Browser                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64                                  | 
 2 | code                                 | Visual Studio Code                     | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://packages.microsoft.com/yumrepos/vscode                                         | 
 3 | download.opensuse.org-non-oss        | Main Repository (NON-OSS)              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/non-oss/                                  | 
 4 | download.opensuse.org-oss            | Main Repository (OSS)                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/oss/                                      | 
 5 | download.opensuse.org-tumbleweed     | Main Update Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/                                        | 
 6 | graphics                             | graphics                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/graphics/openSUSE_Tumbleweed/               | 
 7 | https-download.opensuse.org-7a038dc5 | openSUSE:Factory                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/tumbleweed/repo/oss/                                     | 
 8 | openSUSE-20240426-0                  | openSUSE-20240426-0                    | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-TOSHIBA_TransMemory_0022CFF6BE23C1B0B126DEFB-0:0-part1 | 
 9 | packman                              | Packman                                | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.fau.de/packman//suse/openSUSE_Tumbleweed/                                  | 
10 | repo-debug                           | openSUSE-Tumbleweed-Debug              | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/tumbleweed/repo/oss/                                | 
11 | repo-openh264                        | Open H.264 Codec (openSUSE Tumbleweed) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed                                | 
12 | repo-source                          | openSUSE-Tumbleweed-Source             | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/tumbleweed/repo/oss/                               | 
13 | security                             | security                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/security/openSUSE_Tumbleweed/               | 
14 | sublime-text                         | Sublime Text - x86_64 - Stable         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.sublimetext.com/rpm/stable/x86_64                                     | 
15 | vivaldi                              | vivaldi                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://repo.vivaldi.com/archive/rpm/x86_64                                            | 

and zypper dup

Retrieving repository 'Packman' metadata ...............................................................[done]
Building repository 'Packman' cache ....................................................................[done]
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...

The following package is going to be REMOVED:
  veracrypt

1 package to remove.
After the operation, 4.7 MiB will be freed.

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): 

and lastly, zypper se -si veracrypt

Repository                             : Time since last refresh
Brave Browser                          : 3 min 18 s 
Visual Studio Code                     : 20 h 37 min 
Main Repository (NON-OSS)              : 3 min 18 s 
Main Repository (OSS)                  : 3 min 18 s 
Main Update Repository                 : 3 min 17 s 
graphics                               : 3 min 17 s 
openSUSE:Factory                       : 3 min 17 s 
Packman                                : 3 min 17 s 
Open H.264 Codec (openSUSE Tumbleweed) : 3 min 15 s 
security                               : 3 min 15 s 
Sublime Text - x86_64 - Stable         : 3 min 14 s 
vivaldi                                : 3 min 14 s 


    Note: Running with user privileges. From time to time run 'zypper refresh' as root to make sure
    the repository metadata are complete and up-to-date.

Loading repository data...
Reading installed packages...

S  | Name           | Type    | Version     | Arch   | Repository
---+----------------+---------+-------------+--------+------------------
i+ | veracrypt      | package | 1.26.7-1.14 | x86_64 | (System Packages)
i+ | veracrypt      | package | 1.26.7-1.15 | x86_64 | security
i+ | veracrypt-lang | package | 1.26.7-1.15 | noarch | security

Your last output from zypper se -si veracrypt shows that you have two different versions of veracrypt installed…

1.26.7-1.14
1.26.7-1.15

The outdated version is noted as “System package”, that means the repo where this package came from is no longer available (see man zypper). That could mean that you installed this package in the past manually without adding the repo.

So zypper dup wants to do the right thing by removing this outdated package. Let it do its job…

1 Like

A few remarks about the posting.

Instead of making the story telling, better (and easier) to include the line with the prompt and the command within the copy/paste you make. Then we see exactly what you do and do not depend on you typing things.

One of the things we then would have seen is probably that you did not run (all) those commands “as root”. Which might be important for the interpretation of the output.

And yes, zypper is typical a system management tool and thus most of the time it should be run by the system manager root .

As per your suggestion, I just did that.

I intentionally kept a vercrypt container mounted, and got:

    ~  sudo zypper dup                                                               5 ✘  15:29:13  
[sudo] password for root: 
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...

The following package is going to be REMOVED:
  veracrypt

1 package to remove.
After the operation, 4.7 MiB will be freed.

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Error: All VeraCrypt volumes must be dismounted first.
error: %preun(veracrypt-1.26.7-1.14.x86_64) scriptlet failed, exit status 1
error: veracrypt-1.26.7-1.14.x86_64: erase failed
(1/1) Removing veracrypt-1.26.7-1.14.x86_64 ...........................................................[error]
Removal of (123273)veracrypt-1.26.7-1.14.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: Command exited with status 1.
Abort, retry, ignore? [a/r/i] (a): a
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.

Would have been nice, if the version number was part of the sudo zypper dup output, but I understand why this is not the case.
Anyway, I dismounted the container, exited veracrypt, ran sudo zypper dup again. I went through and veracrypt is still installed.

So, thanks! Learnt something new and everything’s good now :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.