sudo-ldap not installable

Bug #140467 reported by Etienne Goyer
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Binary package hint: sudo-ldap

There is a failsafe built in the sudo package that prevent sudo-ldap (which Replace/Provide sudo) from being installed. See the output transcript below .

Setting SUDO_FORCE_REMOVE=yes work just as expected.

=====================================
ubuntu@gutsy-i386-packaging:~$ sudo apt-get install sudo-ldap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python-debian python-deb822 linux-headers-2.6.22-10 linux-headers-2.6.22-10-generic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  sudo
The following NEW packages will be installed:
  sudo-ldap
0 upgraded, 1 newly installed, 1 to remove and 182 not upgraded.
Need to get 0B/179kB of archives.
After unpacking 16.4kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: sudo: dependency problems, but removing anyway as you request:
 ubuntu-minimal depends on sudo.
 gksu depends on sudo.
(Reading database ... 136124 files and directories currently installed.)
Removing sudo ...
You have asked that the sudo package be removed,
but no root password has been set.
Without sudo, you may not be able to gain administrative privileges.

If you would prefer to access the root account with su(1)
or by logging in directly,
you must set a root password with "sudo passwd".

If you have arranged other means to access the root account,
and you are sure this is what you want,
you may bypass this check by setting an environment variable
(export SUDO_FORCE_REMOVE=yes).

Refusing to remove sudo.
dpkg: error processing sudo (--remove):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 sudo
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@gutsy-i386-packaging:~$

Martin Pitt (pitti)
Changed in sudo:
status: New → Triaged
Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

Just tried on Intrepid, and the problem is still there indeed.

Revision history for this message
Mark Craig (mark-craig) wrote :

On Maverick, I'm trying to force removal as suggested. Does not seem to work.

mark@ldapclient:~$ export SUDO_FORCE_REMOVE=yes
mark@ldapclient:~$ sudo apt-get install sudo-ldap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  sudo
The following NEW packages will be installed:
  sudo-ldap
0 upgraded, 1 newly installed, 1 to remove and 4 not upgraded.
Need to get 0B/336kB of archives.
After this operation, 41.0kB of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: sudo: dependency problems, but removing anyway as you requested:
 ubuntu-minimal depends on sudo.
 gksu depends on sudo.
(Reading database ... 170472 files and directories currently installed.)
Removing sudo ...
You have asked that the sudo package be removed,
but no root password has been set.
Without sudo, you may not be able to gain administrative privileges.

If you would prefer to access the root account with su(1)
or by logging in directly,
you must set a root password with "sudo passwd".

If you have arranged other means to access the root account,
and you are sure this is what you want,
you may bypass this check by setting an environment variable
(export SUDO_FORCE_REMOVE=yes).

Refusing to remove sudo.
dpkg: error processing sudo (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 sudo
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Mark Craig (mark-craig) wrote :

BTW, the other workaround suggested does not appear to work on Maverick, either.

mark@ldapclient:~$ sudo passwd
passwd: Authentication token manipulation error
passwd: password unchanged

Revision history for this message
Mark Craig (mark-craig) wrote :

As an alternative workaround, I did this on Maverick. If this system were something other than a test VM, I would be more careful with the password, BTW.

mark@ldapclient:~$ mkpasswd password
GjIcQ0DGpk0bI
mark@ldapclient:~$ sudo usermod -p GjIcQ0DGpk0bI root
mark@ldapclient:~$ sudo apt-get install sudo-ldap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  sudo
The following NEW packages will be installed:
  sudo-ldap
0 upgraded, 1 newly installed, 1 to remove and 4 not upgraded.
Need to get 0B/336kB of archives.
After this operation, 41.0kB of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: sudo: dependency problems, but removing anyway as you requested:
 ubuntu-minimal depends on sudo.
 gksu depends on sudo.
(Reading database ... 170472 files and directories currently installed.)
Removing sudo ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Selecting previously deselected package sudo-ldap.
(Reading database ... 170447 files and directories currently installed.)
Unpacking sudo-ldap (from .../sudo-ldap_1.7.2p7-1ubuntu2.1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up sudo-ldap (1.7.2p7-1ubuntu2.1) ...
Installing new version of config file /etc/init.d/sudo ...

Revision history for this message
Mark Craig (mark-craig) wrote :

Hmm... and that seems to have broken sudo for me. I cannot sudo vi /etc/sudo-ldap.conf now... nor can I su to root. :-(

Revision history for this message
Mark Craig (mark-craig) wrote :

Oups, false alarm. Fat fingers. Still cannot su to root, but I can sudo vi /etc/sudo-ldap.conf. Now if only I could get the rest of it working...

Revision history for this message
Mark Craig (mark-craig) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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