package samba-common 3.0.28a-1ubuntu4 failed to install/upgrade:

Bug #224061 reported by ZioNemo
4
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned
ucf (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: samba

This might be a duplicate of the other reported bugs for this package, but it happened in a different way, so I'm filing a separate bug.

NOTE: messages may be a bit off because I'm using the Italian version and translating to English.

I was upgrading from Gutsy (fully updated) to Herdy using the provided feature of the update manager.

After downloading it started upgrade proper.
When it come to Samba it displayed a box "file samba.conf has been modified locally, what should I do?";
It offered several alternatives (some absolutely identical! another bug?).
I chose "show differences between the two files".
It failed immediately without showing anything.
I had then several other errors due to samba left unconfigured.
In /etc/samba/ I did not find any temporary (I expected to find something like smb.conf-dpkg.new).

Best Regards and Many Thanks!
ZioNemo

ProblemType: Package
Architecture: i386
Date: Tue Apr 29 07:57:31 2008
DistroRelease: Ubuntu 8.04
ErrorMessage:
 ErrorMessage: il sottoprocesso post-installation script ha restituito un codice di errore 1
Package: samba-common 3.0.28a-1ubuntu4
PackageArchitecture: i386
SourcePackage: samba
Title: package samba-common 3.0.28a-1ubuntu4 failed to install/upgrade:
Uname: Linux 2.6.22-14-generic i686

Revision history for this message
ZioNemo (zionemo) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

> It failed immediately without showing anything.

What do you mean by that exactly ? On which button did you click ?

Could you also post the logs of the upgrade ? They can be found in /var/log/dist-upgrade/.

Changed in samba:
status: New → Incomplete
Revision history for this message
ZioNemo (zionemo) wrote : Re: [Bug 224061] Re: package samba-common 3.0.28a-1ubuntu4 failed to install/upgrade:
Download full text (10.1 KiB)

Mathias Gug ha scritto:
>> It failed immediately without showing anything.
>>
>
> What do you mean by that exactly ? On which button did you click ?
>
> Could you also post the logs of the upgrade ? They can be found in
> /var/log/dist-upgrade/.
>
> ** Changed in: samba (Ubuntu)
> Status: New => Incomplete
>
>
Hi,
Thanks for the fast answer.

I was presented with the box stating something like:
"the default smb.conf was locally modified, what do you want to do?"

I chose the "show differences between versions".

Note: there were two identical lines and I chose the first one (See below).

Unfortunately I'm using Italian translation, so all what follows is in
Italian.
I hope You can extract the information You need.
If You need assistance in translation I'm available :)

The relevant section of apt-term.log is:
=====================
Configuro samba-common (3.0.28a-1ubuntu4) ...
need a diff as argument
dpkg: errore processando samba-common (--configure):
 il sottoprocesso post-installation script ha restituito un codice di
errore 1
dpkg: problemi con le dipendenze impediscono la configurazione di smbfs:
 smbfs dipende da samba-common (= 3.0.28a-1ubuntu4); comunque:
  Il pacchetto samba-common non è ancora configurato.
dpkg: errore processando smbfs (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di samba:
 samba dipende da samba-common (= 3.0.28a-1ubuntu4); comunque:
  Il pacchetto samba-common non è ancora configurato.
dpkg: errore processando samba (--configure):
 problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di smbclient:
 smbclient dipende da samba-common (= 3.0.28a-1ubuntu4); comunque:
  Il pacchetto samba-common non è ancora configurato.
dpkg: errore processando smbclient (--configure):
 problemi con le dipendenze - lasciato non configurato
=====================
main.log
=====================
...
...
2008-04-28 23:45:51,651 INFO cache.commit()
2008-04-29 00:12:13,174 WARNING no activity on terminal for 240 seconds
(Configurazione di scrollkeeper in corso)
2008-04-29 00:19:24,874 WARNING no activity on terminal for 240 seconds
(Configurazione di samba-common in corso)
2008-04-29 07:57:30,611 ERROR got an error from dpkg for pkg:
'samba-common': 'il sottoprocesso post-installation script ha restituito
un codice di errore 1
'
2008-04-29 07:57:30,612 DEBUG running apport_pkgfailure() samba-common:
il sottoprocesso post-installation script ha restituito un codice di
errore 1

2008-04-29 07:57:30,710 ERROR got an error from dpkg for pkg:
'samba-common': 'il sottoprocesso post-installation script ha restituito
un codice di errore 1
'
2008-04-29 07:57:42,899 ERROR got an error from dpkg for pkg: 'smbfs':
'problemi con le dipendenze - lasciato non configurato
'
2008-04-29 07:57:42,900 DEBUG running apport_pkgfailure() smbfs:
problemi con le dipendenze - lasciato non configurato

2008-04-29 07:57:42,901 ERROR got an error from dpkg for pkg: 'smbfs':
'problemi con le dipendenze - lasciato non configurato
'
2008-04-29 07:57:47,087 ERROR got an error from dpkg for pkg: 'samba':
'probl...

Revision history for this message
Mathias Gug (mathiaz) wrote :

Thanks for you post.

It seems that you were asked to handle samba configuration files changes - what did you do exactly ? Did you kill the window asking what should be done with the configuration files ? Or did choose an option ? If so which one ?

Revision history for this message
Steve Langasek (vorlon) wrote :

Part of the problem is that the following two English choices:

  show the differences between the versions
  show a side-by-side difference between the versions

in ucf are translated as follows into Italian:

  mostrare le differenze tra le versioni
  mostrare le differenze tra le versioni

This obviously gives the user no way to distinguish between the two.

The other problem is that choosing 'show the differences' is apparently not displaying the differences in the debconf UI, like it's supposed to. This is probably another bug in ucf, but I'm not sure where the bug lies. ZioNemo, can you send a copy of your /etc/samba/smb.conf file from this failure?

Changed in ucf:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
mc5686 (mc5686) wrote :

Hi,
I'm unsure about what You need, so I attach all my current /etc/samba/ content

Thanks.
ZioNemo

Revision history for this message
Steve Langasek (vorlon) wrote :

I've managed to reproduce this bug using the provided smb.conf.old file in the zip attachment and simulating an upgrade from gutsy to hardy.

If I use the karmic version of ucf, I instead get this message:

  mostrare le differenze tra le versioni

  There are no non-white space differences in the files.

A close inspection of the files shows that this is the diff:

diff -u /var/run/samba/upgrades/smb.conf /etc/samba/smb.conf
--- /var/run/samba/upgrades/smb.conf 2009-08-22 14:17:12.000000000 -0700
+++ /etc/samba/smb.conf 2009-08-22 14:17:12.000000000 -0700
@@ -307,6 +307,7 @@
 ; preexec = /bin/mount /cdrom
 ; postexec = /bin/umount /cdrom

+
 [backups]
        force user = mauro
        public = yes

So the message is correct, and it appears the bug is fixed.

(The Italian mistranslation is also a bug, but is not the cause of this upgrade failure; I'll file that bug separately with the Debian ucf maintainer.)

Changed in ucf (Ubuntu):
status: Confirmed → Fix Released
Changed in samba (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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