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
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…
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 .
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