"cryptsetup" should be included and installed by default in ubuntu 14.04

Bug #1310174 reported by suokunlong
110
This bug affects 26 people
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Incomplete
Undecided
Unassigned
gnome-disk-utility (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After upgrade from ubuntu 13.10 to 14.04 lts, I am unable to ulock my luks device. It gives the following error message:

Error unlocking /dev/sda6: Error spawning command-line `cryptsetup luksOpen "/dev/sda6" "luks-9082ff43-d991-4bf1-8bb6-ef8452e3e11a" ': Failed to execute child process "cryptsetup" (No such file or directory) (g-exec-error-quark, 8)

Then I noticed that the package "cryptsetup" was not installed in my system.

"cryptsetup" should be included and installed as default in ubuntu 14.04 lts, as it was in the previous releases.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cryptsetup (not installed)
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic i686
ApportVersion: 2.14.1-0ubuntu3
Architecture: i386
CurrentDesktop: Unity
Date: Sun Apr 20 13:21:55 2014
InstallationDate: Installed on 2014-04-20 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417)
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
suokunlong (suokunlong) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

Cryptsetup was never installed by default in Ubuntu; it was only installed if you selected encryption in the installer. however, you say this was an upgrade, and it also should not have been removed on upgrade. Please attach your upgrade logs from /var/log/apt/dist-upgrade.

Changed in cryptsetup (Ubuntu):
status: New → Incomplete
Revision history for this message
suokunlong (suokunlong) wrote :

Steve Langasek (vorlon) wrote on 2014-04-20: #2

> Cryptsetup was never installed by default in Ubuntu; it was only installed if you selected encryption in the installer.

I never explicitly installed cryptsetup during my previous ubuntu versions (and I did not choose "encrypt" option), but I always could unlock my luks device. I will check this for 13.10 in a vbox later.

However, even if cryptsetup is not installed by default, in nautiles when it do not find "cryptsetup" it should give some useful infomation (e.g., "cryptsetup is not installed in your system, please install...", or just ask the user whether he would like to install it), rather than giving the useless error message.

> however, you say this was an upgrade, and it also should not have been removed on upgrade. Please attach your upgrade logs from /var/log/apt/dist-upgrade.

By saying UPGRADE, I mean "remove Ubuntu 13.10 and install 14.04", so no logs.

affects: nautilus (Ubuntu) → gnome-disk-utility (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

reassigning to gnome-disk-utility, the nautilus integration is provided by this component

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-disk-utility (Ubuntu):
status: New → Confirmed
Revision history for this message
Minosone (menno-pleijster) wrote :

The same issue also arrises when you add a new disk to your system and wish to encrypt it. The disks utility offers you the encryption option, but then returns the none obvious error as stated before, instead of telling you that cryptsetup is not installed.

Revision history for this message
GizmoChicken (gizmochicken) wrote :

Cryptsetup is not currently being installed by default in Ubuntu 14.10 (Utopic). To avoid the issue mentioned by Minosone in comment #6, cryptsetup should be installed by default, in my opinion.

Revision history for this message
lostboy1 (brett-blzj) wrote :

I too ran in to a problem after upgrading a luks full disk encrypted 12.04.5 system to 14.04.1. After successfully upgrading, upon reboot I was asked for the luks password for the root system. After entering the password, I see sever errors including "/sbin/cryptsetup not found".

After doing research I came across bug https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1256730. After booting from a rescue cd, creating the file in comment #4 and updating the initrd, the cryptsetup could be found in the initrd.

Another reboot and all was good.

Revision history for this message
Antonio Sánchez (ingantosan) wrote :

Same here, 15.10.

Revision history for this message
Martin G Miller (mgmiller) wrote :

Problem continues in 16.04. This really should be installed by default or the error message should be useful and offer to install it.

Revision history for this message
Ads20000 (ads20000) wrote :

Perhaps it should be a dependency (or recommends/suggests/enhances) for gnome-disk-utility

tags: added: yakkety
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.