Hello John,
Thank you for submitting this bug and reporting a problem with 
system-config-printer.  You made this bug report in 2010 and Ubuntu has been 
updated since then. 
                                                         
Could you confirm that this is no longer a problem and that we can close the 
bug report? 
If it is still a problem, are you still interested in finding a solution to 
this bug? 
If you are, could you let us know, and in the current version, run the 
following (only once):                 
apport-collect BUGNUMBER
and upload the updated logs and and any other logs that are relevant for this 
particular issue.                      

Thank you again for helping make Ubuntu better. 
G
[Ubuntu Bug Squad volunteer triager]

** Changed in: system-config-printer (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/693442

Title:
  Error installing software with apt and software center: /etc/passwd
  locked by /usr/share/system-config-printer/applet.py

Status in system-config-printer package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: apt

  I'm using Ubuntu 10.10.  I tried installing Code::Blocks from the
  Ubuntu Software Center and got a message "Package operation failed"
  even though Code::Blocks seems to have installed perfectly.  I've had
  the same problem while installing other applications and have ignored
  it without any repercussions that I can tell.   Below is the output
  when attempting the same installation from the terminal.  The error is
  identical to the one I got from the software center.

  ~$ sudo apt-get install libcodeblocks0
   
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  libcodeblocks0 is already the newest version.
  The following packages were automatically installed and are no longer 
required:
    python-utidylib python-gtkmozembed libtidy-0.99-0 python-feedparser
    python-rsvg python-evolution libgdiplus libboost-python1.42.0
  Use 'apt-get autoremove' to remove them.
  0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
  1 not fully installed or removed.
  After this operation, 0B of additional disk space will be used.
  Do you want to continue [Y/n]? y
  Setting up hal (0.5.14-0ubuntu6) ...
  useradd: cannot lock /etc/passwd; try again later.
  adduser: `/usr/sbin/useradd -d /var/run/hald -g haldaemon -s /bin/false -u 
116 haldaemon' returned error code 1. Exiting.
  dpkg: error processing hal (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   hal
  E: Sub-process /usr/bin/dpkg returned an error code (1)


  So I tried to see what has locked /etc/passwd and found the culprit is
  applet.py:

  greeenguru@Veronica:~$ lsof /etc/passwd
  COMMAND    PID       USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
  applet.py 1982 greeenguru   10r   REG    8,1     1698 2886356 /etc/passwd


  And I found which applet.py has locked /etc/passwd:

  greeenguru@Veronica:~$ ps -Af | grep applet.py
  1000      1982  1598  0 Dec20 ?        00:00:02 /usr/bin/python 
/usr/share/system-config-printer/applet.py

  
  It seems that /usr/share/system-config-printer/applet.py is locking 
/etc/passwd, but I don't know how to solve this problem or even what applet.py 
does.  I found one solution on the forums: 
http://ubuntuforums.org/showthread.php?p=9468367
  but the solution is to run this:

  sudo rm -f /etc/gshadow.lock /etc/shadow.lock /etc/passwd.lock

  and I don't fully understand what the repercussions of that might be.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: apt 0.8.3ubuntu7
  ProcVersionSignature: Ubuntu 2.6.35-23.41-generic 2.6.35.7
  Uname: Linux 2.6.35-23-generic i686
  NonfreeKernelModules: nvidia wl
  Architecture: i386
  Date: Thu Dec 23 01:24:59 2010
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
  ProcEnviron:
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: apt

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/693442/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to