Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Installing a needed package that isn't in Debian repos
-
- Posts: 80
- Joined: 2024-01-03 08:03
- Location: Deep space
- Has thanked: 9 times
- Been thanked: 3 times
Installing a needed package that isn't in Debian repos
The program's name is VeraCrypt, the successor to TrueCrypt. I use it alot with my encrypted external drives. However, I've noticed that it isn't in Debian repos, it's also not in backports. And I couldn't find a Flatpak/Snap for it either.
They do have a website, and they do produce Debian-specific packages.
https://veracrypt.fr/en/Downloads.html
I also found this:
https://wiki.debian.org/DontBreakDebian
Of course, it advises to not install packages that aren't in the official repos. Which kind of leaves me between a rock and a hard place, since a package I use often is only available by installing a deb file from the VeraCrypt website.
Which gives me an idea, that maybe I can install it into my home directory only, without root access, instead of manually installing the deb file with apt. This wouldn't pose the risk of breaking Debian, since the program wouldn't exist outside my home directory. I know how to edit ~/.profile, add a custom path within my home, so that a binary can be ran via CLI without referrencing the absolute path.
The issue is that I don't know of a viable method that would allow to me to install the deb file without root and into my home only. VeraCrypt will of course ask for root access when mounting volumes, since mounting requires root. But that shouldn't be an issue as long as it doesn't install into system directories.
I'm also aware that installing outside apt will make it difficult to remove packages, since apt can't keep track of what went where.
So...ideas?
They do have a website, and they do produce Debian-specific packages.
https://veracrypt.fr/en/Downloads.html
I also found this:
https://wiki.debian.org/DontBreakDebian
Of course, it advises to not install packages that aren't in the official repos. Which kind of leaves me between a rock and a hard place, since a package I use often is only available by installing a deb file from the VeraCrypt website.
Which gives me an idea, that maybe I can install it into my home directory only, without root access, instead of manually installing the deb file with apt. This wouldn't pose the risk of breaking Debian, since the program wouldn't exist outside my home directory. I know how to edit ~/.profile, add a custom path within my home, so that a binary can be ran via CLI without referrencing the absolute path.
The issue is that I don't know of a viable method that would allow to me to install the deb file without root and into my home only. VeraCrypt will of course ask for root access when mounting volumes, since mounting requires root. But that shouldn't be an issue as long as it doesn't install into system directories.
I'm also aware that installing outside apt will make it difficult to remove packages, since apt can't keep track of what went where.
So...ideas?
- sunrat
- Administrator
- Posts: 6511
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 489 times
Re: Installing a needed package that isn't in Debian repos
Have you considered ZuluCrypt instead?
http://mhogomchungu.github.io/zuluCrypt/
https://packages.debian.org/search?keywords=ZuluCrypt
It's in Debian repo. Assuming you want the GUI version:
http://mhogomchungu.github.io/zuluCrypt/
https://packages.debian.org/search?keywords=ZuluCrypt
It's in Debian repo. Assuming you want the GUI version:
Code: Select all
apt install zulucrypt-gui
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Posts: 80
- Joined: 2024-01-03 08:03
- Location: Deep space
- Has thanked: 9 times
- Been thanked: 3 times
Re: Installing a needed package that isn't in Debian repos
I've never heard of it. All of the encrypted volumes use the NTFS filesystem, and were encrypted by Veracrypt in Windows. I only need something that can access them as read/write. Although installing Veracrypt into my home partition is an option i'd like to explore.sunrat wrote: ↑2024-02-05 13:14 Have you considered ZuluCrypt instead?
http://mhogomchungu.github.io/zuluCrypt/
https://packages.debian.org/search?keywords=ZuluCrypt
It's in Debian repo. Assuming you want the GUI version:Code: Select all
apt install zulucrypt-gui
-
- Posts: 80
- Joined: 2024-01-03 08:03
- Location: Deep space
- Has thanked: 9 times
- Been thanked: 3 times
Re: Installing a needed package that isn't in Debian repos
I would have too, until reading the Don't Break Debian article. But since I only need to access encrypted partitions that were created outside of Linux, then it's not worth the risk to install their deb file. Especially not if Zulucrypt can do what I need. I'll find out later today when I have time to try it.
- bbbhltz
- Posts: 166
- Joined: 2024-01-10 14:53
- Location: Normandy
- XMMP/Jabber: bbbhltz@mailbox.org
- Has thanked: 49 times
- Been thanked: 33 times
Re: Installing a needed package that isn't in Debian repos
It looks like zuluCrypt might be a good solution here, but installing a .deb from the web isn't the same as adding a source to the repos. You can download it as check the dependencies with beforehand.
Code: Select all
dpkg -I file.deb
bbbhltz
longtime desktop Linux user; eternal newbie
longtime desktop Linux user; eternal newbie
- pbear
- Posts: 329
- Joined: 2023-08-27 15:05
- Location: San Francisco
- Has thanked: 1 time
- Been thanked: 57 times
Re: Installing a needed package that isn't in Debian repos
VeraCrypt is a well-known and respected project. Quite the opposite of, "On Debian installing software from random websites is a bad habit." Meanwhile, zuluCrypt seems to be one guy whose last update was two years ago.
I've not used VC for a couple years - I moved my sensitive data to a LUKS partition mounted only when needed (and accessible to my Win10 VM) - but never had the slightest trouble with VC's deb file.
I've not used VC for a couple years - I moved my sensitive data to a LUKS partition mounted only when needed (and accessible to my Win10 VM) - but never had the slightest trouble with VC's deb file.
-
- Debian Developer
- Posts: 452
- Joined: 2022-07-12 14:10
- Has thanked: 1 time
- Been thanked: 88 times
Re: Installing a needed package that isn't in Debian repos
Last time I checked users could get root privileges if they were allowed to mount veracrypt containers. That happens since they can e.g. contain ext4 filesystem with suid binaries. So I guess veracrypt is not suitable for university computers that have more than one user?pbear wrote: ↑2024-02-05 19:16 VeraCrypt is a well-known and respected project. Quite the opposite of, "On Debian installing software from random websites is a bad habit." Meanwhile, zuluCrypt seems to be one guy whose last update was two years ago.
I've not used VC for a couple years - I moved my sensitive data to a LUKS partition mounted only when needed (and accessible to my Win10 VM) - but never had the slightest trouble with VC's deb file.
Re: Installing a needed package that isn't in Debian repos
Most, if not all, of us have installed a non-Debian package. The important thing to remember is to block the repo after installing. If you leave a source open every time you do an upgrade you can have little surprises sneaking in.
- pbear
- Posts: 329
- Joined: 2023-08-27 15:05
- Location: San Francisco
- Has thanked: 1 time
- Been thanked: 57 times
Re: Installing a needed package that isn't in Debian repos
From memory, root authorization was required for the mount, with default settings anyway. Not something I'd have worried about, as I'm the only user on my computers. Also, my memory might be rusty and/or things may have changed. Been doing a little reading about zuluCrypt. It's an interesting app and the developer seems pretty sharp. For general use, might even be better than VC. To open VC containers, though, I'd use VC.
Edit: Out of curiosity, did a quick test in a Bookworm VM, installing the latest deb file from VeraCrypt. Created an encrypted volume on flash drive. Added a non-admin user to the VM. Said user can't mount the encrypted volume. Can't even access the folder if mounted by the admin user and left mounted while switching users. Don't doubt there's some scenario where privilege escalation is possible, but the default behavior is what one would expect.
Edit 2: Based on a little research, best way to enable non-admin user to mount a VC-encrypted volume seems to be a sudoers file - I used /etc/sudoers.d/20-veracrypt - with one line: %veracrypt ALL=(ALL) NOPASSWD:/usr/bin/veracrypt. Created the group and added both users to it. Indeed works, except non-admin user is required to enter its (non-sudo) password. Can't think of any significant risk from this solution, but perhaps I'm overlooking something.
Doing this as an edit because the OP hasn't indicated an interest in the issue, but thought it worthwhile to report the test.
Last edited by pbear on 2024-02-07 07:56, edited 2 times in total.
-
- Posts: 263
- Joined: 2023-03-02 05:26
- Location: USA
- Has thanked: 50 times
- Been thanked: 60 times
- Contact:
Re: Installing a needed package that isn't in Debian repos
.deb packages are just tar archives. You can extract it withenigma83 wrote:Which gives me an idea, that maybe I can install it into my home directory only, without root access, instead of manually installing the deb file with apt. This wouldn't pose the risk of breaking Debian, since the program wouldn't exist outside my home directory. I know how to edit ~/.profile, add a custom path within my home, so that a binary can be ran via CLI without referrencing the absolute path.
The issue is that I don't know of a viable method that would allow to me to install the deb file without root and into my home only. VeraCrypt will of course ask for root access when mounting volumes, since mounting requires root. But that shouldn't be an issue as long as it doesn't install into system directories.
Code: Select all
$ dpkg -x /path/to/file.deb
There are security issues related to using an unprivileged install, but a bit hard to explain and not the worst thing in the world.
bbbbhltz wrote:It looks like zuluCrypt might be a good solution here, but installing a .deb from the web isn't the same as adding a source to the repos. You can download it as check the dependencies with
Many a proprietary/upstream .deb happy to import custom gpg keys, and add a file to /etc/apt/sources.list.d without you knowing. Then to poison your libs with upstreams and break later. As Bulkley said you can simply delete the sources.list.d entry.
Installing local .deb = arbitrary code execution on your computer as root. Many things can be written in the post-install script of the .deb.
Anyways, long-standing/popular software that isn't packaged in Debian should always raise suspicions on WHY it isn't. A good thing to look for is a RFP (Request For Package) bug for such software.
https://bugs.debian.org/cgi-bin/bugrepo ... ug=1029456
Finds you:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=814352
As discussed in https://bugs.debian.org/cgi-bin/bugrepo ... bug=814352, it has
a shady licensing model making it DFSG incompatible. IDK why wnpp-check wouldn't
show that one, so I'll leave this message here.
Ouch! I would stay far, far away from such software.The current upstream maintainers offer binary blobs of VeraCrypt for
installation on Linux, also Debian.
With the binary builds, I see the issue that no exact sources of the
builds are available. The builds probably have been derived from the
upstream Git or source release tarballs, but who knows.
Be seeing you...
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: Installing a needed package that isn't in Debian repos
Jeesh, this is 2024. Use apt.bbbhltz wrote: ↑2024-02-05 14:24 It looks like zuluCrypt might be a good solution here, but installing a .deb from the web isn't the same as adding a source to the repos. You can download it as check the dependencies withbeforehand.Code: Select all
dpkg -I file.deb
MX Linux packager and developer
-
- Posts: 80
- Joined: 2024-01-03 08:03
- Location: Deep space
- Has thanked: 9 times
- Been thanked: 3 times
Re: Installing a needed package that isn't in Debian repos
I don't see any harm in using dpkg, not if I'm just checking dependencies. That command wouldnt install it, anyway.stevepusser wrote: ↑2024-02-06 03:12Jeesh, this is 2024. Use apt.bbbhltz wrote: ↑2024-02-05 14:24 It looks like zuluCrypt might be a good solution here, but installing a .deb from the web isn't the same as adding a source to the repos. You can download it as check the dependencies withbeforehand.Code: Select all
dpkg -I file.deb
- sunrat
- Administrator
- Posts: 6511
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 489 times
Re: Installing a needed package that isn't in Debian repos
100%. apt will resolve dependencies, dpkg won't.stevepusser wrote: ↑2024-02-06 03:12Jeesh, this is 2024. Use apt.bbbhltz wrote: ↑2024-02-05 14:24 It looks like zuluCrypt might be a good solution here, but installing a .deb from the web isn't the same as adding a source to the repos. You can download it as check the dependencies withbeforehand.Code: Select all
dpkg -I file.deb
Open terminal in directory of downloaded .deb then
Code: Select all
apt install ./file.deb
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- bbbhltz
- Posts: 166
- Joined: 2024-01-10 14:53
- Location: Normandy
- XMMP/Jabber: bbbhltz@mailbox.org
- Has thanked: 49 times
- Been thanked: 33 times
Re: Installing a needed package that isn't in Debian repos
What's the apt command to check dependencies without installing?stevepusser wrote: ↑2024-02-06 03:12Jeesh, this is 2024. Use apt.bbbhltz wrote: ↑2024-02-05 14:24 It looks like zuluCrypt might be a good solution here, but installing a .deb from the web isn't the same as adding a source to the repos. You can download it as check the dependencies withbeforehand.Code: Select all
dpkg -I file.deb
bbbhltz
longtime desktop Linux user; eternal newbie
longtime desktop Linux user; eternal newbie
- sunrat
- Administrator
- Posts: 6511
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 489 times
Re: Installing a needed package that isn't in Debian repos
Code: Select all
apt depends <packagename>
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!