"Broken" Samba file

Asked by Paul G

Current installed version of Samba = 3.0.22-lubuntu3.2, ran auto-update to version 3.0.22-lubuntu3.3.

Synaptic Package Manager now reports Samba as a 'broken package".

I have tried dozens of times to force the new version with no luck. Keep getting this message:
"E: /var/cache/apt/archives/samba_3.0.22-1ubuntu3.3_i386.deb: subprocess new pre-removal script returned error exit status 102"

I cannot figure how to roll-back to previous version but have noted that samba-client successfully upgraded to 3.3 as did smbclient.

I am trying to install other software but package manager will not let me while there is a "broken package"

Can anyone help?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Paul G
Solved:
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Thanks for the question.

Some of those installation scripts require a process to run otherwise the fail. Maybe you could just make sure that your samba processes are running. From a commandline terminal run (password is the same as your login password):

sudo /etc/init.d/samba restart

and then try to reconfigure the package

sudo dpkg-reconfigure samba

I hope this helps.

Revision history for this message
Paul G (paul-galea-band1solutions) said :
#2

Ralph, Thanks for the advice. I ran both commands and got the following outputs:

paul@band1laptop:~$ sudo /etc/init.d/samba restart
Password:
 * Stopping Samba daemons... [ ok ]
 * Starting Samba daemons... [ ok ]
paul@band1laptop:~$ sudo dpkg-reconfigure samba
invoke-rc.d: dangling symlink: /etc/rc2.d/S91samba

I then tried to re-install all updates and received a dialog box message along the lines of "you must fix all broken packages prior to proceeding" and I am now stuck at this point. How do you fix a broken package?

Paul

Revision history for this message
Best Paul G (paul-galea-band1solutions) said :
#3

Ralph, Just to let you know that I found an answer elsewhere on the Ubuntu Community and it appears to have worked like a charm.

Thank you for your asistance - it has been very much appreciated and I think I have learnt a little bit more on how to use this great resource.

regards, Paul G

Revision history for this message
DavidGN (davidgn) said :
#4

"... I found an answer elsewhere ..."

It would be rather useful if you actually shared what that answer was.

Revision history for this message
Paul G (paul-galea-band1solutions) said :
#5

David, No problems, I will update my comment. BTW I think it was in
the same forum but answered under another interest area, "installations
and upgrades", but will check.

Paul

Your question #7256 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/7256

David_1cog posted a new comment:
"... I found an answer elsewhere ..."

It would be rather useful if you actually shared what that answer was.

Revision history for this message
Paul G (paul-galea-band1solutions) said :
#6

I found the answer to this problem on https://answers.launchpad.net/ubuntu/+question/3583 It worked fine.

Revision history for this message
DavidGN (davidgn) said :
#7

Hi Paul,

Thanks for the quick reply and link to answer. :)