veracrypt / VeraCrypt

Disk encryption with strong security based on TrueCrypt
https://www.veracrypt.fr
Other
6.74k stars 937 forks source link

Cannot install linux version: veracrypt-uninstall.sh has bug #987

Open jerry-ne opened 1 year ago

jerry-ne commented 1 year ago

I was downloaded veracrypt-1.25.9-Ubuntu-22.04-amd64.deb and alsoconsole version. I do not know there is oposition in these two version. I was installed console first and after that I tried to install GUI version. OK, I prefer GUI version. So I run /usr/bin/veracrypt-uninstall.sh and it was successfu! After that I tried to install GUI version. But cannot install, deb package is still see somewhere veracrypt-console. Installation is aborted.

Expected behavior

after using veracrypt-uninstall.sh to have clean system

Observed behavior

sudo dpkg -i veracrypt-1.25.9-Ubuntu-22.04-amd64.deb 
dpkg: regarding veracrypt-1.25.9-Ubuntu-22.04-amd64.deb containing veracrypt:
 veracrypt conflicts with veracrypt-console
  veracrypt-console (version 1.25.9-1) is present and installed.

dpkg: error processing archive veracrypt-1.25.9-Ubuntu-22.04-amd64.deb (--install):
 conflicting packages - not installing veracrypt
Errors were encountered while processing:
 veracrypt-1.25.9-Ubuntu-22.04-amd64.deb

find on whole disk found:

/var/lib/dpkg/info/veracrypt-console.md5sums
/var/lib/dpkg/info/veracrypt-console.prerm
/var/lib/dpkg/info/veracrypt-console.list

/var/log/dpkg.log is nearly empty, no relevant info.

Steps to reproduce

  1. install console deb first
  2. running veracrypt-uninstall.sh
  3. try to install veracrypt.deb (GUI)
  4. see aborted install
  5. after OS reboot is same situation

Your Environment

Please tell us more about your environment

VeraCrypt version: veracrypt-1.25.9-Ubuntu-22.04-amd64.deb

Operating system and version: ubuntu mate 22.04.1 LTS jammy

System type: 64bit

ROBot-BBAM commented 1 year ago

Ran into this same issue today. After searching the system the same way you @jerry-ne did, I wasn't able to find any left over artifacts. I moved over to thinking it had to dpkg issues, and it was.

Running sudo dpkg-query -l , I saw that even after running the uninstall script, dpkg still had it as an installed package.

I ran dpkg -r veracrypt-console and was able to get it removed.

Once that was done, I had to reinstall a dependency (libwxgtk3.0-gtk3-0v5) with sudo apt-get install libwxgtk3.0-gtk3-0v5.

Then sudo dpkg -i ./veracrypt-1.25.9-Ubuntu-20.04-amd64.deb and it worked after that.

jerry-ne commented 1 year ago

Thank you @strykethru : it works!

xvs03 commented 2 months ago

I had the same problem, thanks for the solution