upgrade 6.06 to 6.10 process fails when installing samba

Bug #81306 reported by Tim Cheeseright
4
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: update-manager

Acer laptop running 6.06; run
gksu 'update-manager -c -d'
process halts with popup window
"Could not install '/var/cache/apt/archives/samba_3.0.22-1ubuntu4_i386.deb'
  The upgrade aborts now. Please report this bug against the 'update-manager' package and include the files in /var/log/dist-upgrade/ in the bugreport.
 subprocess new pre-removal script returned error exit status 102"
Will attach files as secnodary process as text editor now crashes!

Revision history for this message
Tim Cheeseright (tim-cresset-bmd) wrote :
Revision history for this message
Tim Cheeseright (tim-cresset-bmd) wrote :
Revision history for this message
Tim Cheeseright (tim-cresset-bmd) wrote :
Revision history for this message
Tim Cheeseright (tim-cresset-bmd) wrote :

I think that I fixed this by:
cd /etc/rc2.d
rm S91samba
ln -s ../init.d/samba S91samba

then
apt-get install -f
works. Can't remember how or why this works but then you probably know why better than I do.

Michael Vogt (mvo)
Changed in update-manager:
status: Unconfirmed → Confirmed
Revision history for this message
JimTonti (jtonti1) wrote :

I tried Tim's fix after getting error during upgrade from 6.06LTS to 6.10:
:
"Could not install '/var/cache/apt/archives/samba_3.0.22-1ubuntu4.2_i386.deb'
The upgrade aborts now. Please report this bug against the 'update-manager' package and include the files in /var/log/dist-upgrade/ in the bugreport.
subprocess new pre-removal script returned error exit status 102"

Here's the results:
etc/rc2.d$> sudo apt-get install -f
jtonti@jtonti-ubuntu2:/etc/rc2.d$ sudo apt-get install -f
Password:
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  samba xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xorg
Recommended packages:
  smbldap-tools
The following NEW packages will be installed:
  xorg
The following packages will be upgraded:
  samba xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
5 upgraded, 1 newly installed, 0 to remove and 237 not upgraded.
714 not fully installed or removed.
Need to get 0B/16.9MB of archives.
After unpacking 28.7kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 86662 files and directories currently installed.)
Preparing to replace samba 3.0.22-1ubuntu3.3 (using .../samba_3.0.22-1ubuntu4.2_i386.deb) ...
invoke-rc.d: dangling symlink: /etc/rc2.d/S91samba
dpkg: warning - old pre-removal script returned error exit status 102
dpkg - trying script from the new package instead ...
invoke-rc.d: dangling symlink: /etc/rc2.d/S91samba
dpkg: error processing /var/cache/apt/archives/samba_3.0.22-1ubuntu4.2_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 102
Errors were encountered while processing:
 /var/cache/apt/archives/samba_3.0.22-1ubuntu4.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm not sure what any of this means - sorry!

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.