Samba fails to upgrade with dangling K09samba symlink

Bug #48082 reported by Paul Sladen
16
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Confirmed
Medium
Fabio Massimo Di Nitto
Dapper
New
Undecided
Unassigned

Bug Description

Issue with dangling symlinks:

Setting up samba (3.0.22-1ubuntu3) ...
update-rc.d: warning: /etc/rc2.d/K09samba is not a link to ../init.d/samba or /etc/init.d/samba
update-rc.d: warning: /etc/rc3.d/K09samba is not a link to ../init.d/samba or /etc/init.d/samba
invoke-rc.d: dangling symlink: /etc/rc2.d/K09samba
dpkg: error processing samba (--configure):
 subprocess post-installation script returned error exit status 102
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tags: samba symlink
Revision history for this message
Paul Sladen (sladen) wrote :

Confirming this. It was originally reported to me by a user complaining that their breezy->dapper upgrade had failed. The following above is me reproducing it.

Changed in samba:
status: Unconfirmed → Confirmed
Revision history for this message
Dave Boutcher (boutcher) wrote :

I also hit this on a vanilla upgrade.

Revision history for this message
cleentrax (cleentrax) wrote :

I also have this error. This is on an install of 6.06 LTS -- not an upgrade from Breezy. I got the error after trying to set up a Shared Folder (System/Administration/Shared Folders).

Revision history for this message
jl (jl-scherbenreich) wrote :

with todys samba patch i encountered that error the third time. removing the K09samba symlinks in in rc2.d and rc3.d resolved the issue everytime. does anyone knows what creates these symlinks? they do not seem to be a part of samba, so whats writes them down?

Revision history for this message
Erdal Ronahi (erdalronahi) wrote :

Here the symlinks in rc2.d and rc3.de were named S91samba. Removing them solved the issue.

Revision history for this message
laradji (n-laradji) wrote :

I have remove /etc/rc2.d/K09samba and /etc/rc3.d/K09samba and problem is resolv .

Revision history for this message
joehill (joseph-hill) wrote :

I still have the same problem. It is not an upgrade and I have never had Samba installed on this computer before. As cleentrax reports, this happened after trying to install samba from the Shared Folders dialogue. Removing the two symlinks allows me to install with no problems. (Could this be a bug in the Shared Folders program?)

Revision history for this message
Erdal Ronahi (erdalronahi) wrote :

After upgrading from Dapper to Edgy, the problem reappeared. Deleting the K09samba symlinks solved the issue again.

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Marking as 6.10-targetted.

Revision history for this message
Kees Cook (kees) wrote :

I haven't been able to reproduce this on a fresh Edgy install.

Revision history for this message
TKBuisan (tkbuisan) wrote :

I was able to reproduce this issue upgrading from 6.06LTS to 6.10. Deleting the K09samba symlink and running sudo apt-get install -f allowed me to continue w/ the upgrade process.

Revision history for this message
Colin Watson (cjwatson) wrote :

We aren't going to get any further with this for Edgy. Please investigate further early in Feisty (hence "later").

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

In Bug #48705 I see this workaround:

1. Open a terminal
2. sudo rm /etc/rc3.d/K09samba
3. sudo rm /etc/rc2.d/K09samba
4. apt-get remove samba
5. apt-get install samba

Can someone confirm this is the correct work-around ?

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

This forum post seems to confirm the workaround, at least partially:
http://ubuntuforums.org/showthread.php?t=285487

Revision history for this message
sistemico (rsotaquira) wrote :

Fabian, your procedure solves the problem.

I only change steps 4-5 using synaptic and reinstalling samba.

(I have a fresh Dapper install and the problem appears when trying to share folders).

Matt Zimmerman (mdz)
Changed in samba:
assignee: nobody → fabbione
Revision history for this message
darteo (darteo) wrote : [Bug 48082] Re: Samba fails to upgrade with dangling K09samba symlink

Dear Bugs,

So there is a dangling sym link. I have no idea what that means, nor any idea how to get any of the programs Ubuntu comes with. So for 3 months I have had Ubuntu on my computer and have not been able to use it. I am very excited about Ubuntu's prospects, but I am still waiting to see what it can do. can anyone tell me in normal end user speak how I solve the problem of Samba not working properly? Thank you. Darteo

Please vist my on-line artists portfolio: http//:donartz.tripod.com

 --- On Fri 11/24, Matt Zimmerman < <email address hidden> > wrote:
From: Matt Zimmerman [mailto: <email address hidden>]
To: <email address hidden>
Date: Fri, 24 Nov 2006 21:51:35 -0000
Subject: [Bug 48082] Re: Samba fails to upgrade with dangling K09samba symlink

** Changed in: samba (Ubuntu) Assignee: (unassigned) => Fabio Massimo Di Nitto-- Samba fails to upgrade with dangling K09samba symlinkhttps://launchpad.net/bugs/48082

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Revision history for this message
Lars Noodén (larsnooden) wrote : bug present in 6.06 on PPC, too

The bug is present in 6.06 on PPC, too and more or less prevents use of samba.

Revision history for this message
Lars Noodén (larsnooden) wrote : Dapper PPC

For what it's worth, here is the output of
"sudo apt-get install samba"

Reading package lists... Done
Building dependency tree... Done
Recommended packages:
  smbldap-tools
The following NEW packages will be installed:
  samba
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 0B/3329kB of archives.
After unpacking 8532kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... 98680 files and directories currently installed.)
Unpacking samba (from .../samba_3.0.22-1ubuntu3.1_powerpc.deb) ...
Setting up samba (3.0.22-1ubuntu3.1) ...
 * Starting Samba daemons... [fail]
invoke-rc.d: initscript samba, action "start" failed.
dpkg: error processing samba (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Hi guys,

i would like to have dpkg --get-selections | gzip -9 > data.gz output from one of you that can reliably reproduce this problem.

None of the samba packages from warty to feisty did ever set these symlinks and we need to find what is doing it.

Also note that i am not able to reproduce it here. Is any of you using some kind of external samba configurator?

Fabio

Changed in samba:
importance: High → Medium
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.