I'm trying to reinstall smb.conf file as it came with samba-common.
However, even when I reinstall samba-common (into which it seems to
appear) with the force-confmiss option, it won't get reinstlled:
# apt-get -o DPkg::Options::="--force-confmiss" --reinstall install samba-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba-common (2:3.5.6~dfsg-3squeeze6) ...
Not replacing deleted config file /etc/samba/smb.conf
chmod: cannot access `/etc/samba/smb.conf': No such file or directory
dpkg: error processing samba-common (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
samba-common
is this a problem of samba-common package?
How to get the file reinstalled, amongst purging and reinstalling it?
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Where do you want to go to die?" [Microsoft]
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
On 2012-03-11 17:31 +0100, Matus UHLAR - fantomas wrote:
> I'm trying to reinstall smb.conf file as it came with samba-common.
>
> However, even when I reinstall samba-common (into which it seems to
> appear) with the force-confmiss option, it won't get reinstlled:
This happens because the file /etc/samba/smb.conf is managed with ucf(1)
and not shipped in the package, hence dpkg does not know about it.
> is this a problem of samba-common package?
No.
> How to get the file reinstalled, amongst purging and reinstalling it?
Set the UCF_FORCE_CONFFMISS environment variable, e.g.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87lin73u2g.fsf@turtle.gmx.de">http://lists.debian.org/87lin73u2g.fsf@turtle.gmx.de
03-11-2012, 05:01 PM
Camaleón
force-confmiss does not work
On Sun, 11 Mar 2012 17:31:41 +0100, Matus UHLAR - fantomas wrote:
> I'm trying to reinstall smb.conf file as it came with samba-common.
Maybe you can copy the file from "/usr/share/samba/smb.conf" and make the
required adjustments afterwards.
Greetings,
--
Camaleón
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: jjipam$jrs$8@dough.gmane.org">http://lists.debian.org/jjipam$jrs$8@dough.gmane.org
03-11-2012, 06:33 PM
Tom H
force-confmiss does not work
On Sun, Mar 11, 2012 at 12:31 PM, Matus UHLAR - fantomas
<uhlar@fantomas.sk> wrote:
>
> I'm trying to reinstall smb.conf file as it came with samba-common.
>
> However, even when I reinstall samba-common (into which it seems to appear)
> with the force-confmiss option, it won't get reinstlled:
>
> # apt-get -o DPkg::Options::="--force-confmiss" --reinstall install
> samba-common
> Reading package lists... Done
> Building dependency tree * * * Reading state information... Done
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not
> upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Setting up samba-common (2:3.5.6~dfsg-3squeeze6) ...
> Not replacing deleted config file /etc/samba/smb.conf
> chmod: cannot access `/etc/samba/smb.conf': No such file or directory
> dpkg: error processing samba-common (--configure):
> *subprocess installed post-installation script returned error exit status 1
> configured to not write apport reports
> * * * * * * * * * * * * * * * * * * * Errors were encountered while
> processing:
> *samba-common
>
> is this a problem of samba-common package?
> How to get the file reinstalled, amongst purging and reinstalling it?
It's because "/etc/samba/smb.conf" is installed by the postinst script
of samba-common. It's a copy of "/usr/share/samba/smb.conf".
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAOdo=Syakyha9hgrzGNxZoFfApUe9RzxaCdmdkdRM3JZRE4r1 w@mail.gmail.com">http://lists.debian.org/CAOdo=Syakyha9hgrzGNxZoFfApUe9RzxaCdmdkdRM3JZRE4r1 w@mail.gmail.com
03-13-2012, 01:19 PM
Matus UHLAR - fantomas
force-confmiss does not work
> On 2012-03-11 17:31 +0100, Matus UHLAR - fantomas wrote:
>> I'm trying to reinstall smb.conf file as it came with samba-common.
>>
>> However, even when I reinstall samba-common (into which it seems to
>> appear) with the force-confmiss option, it won't get reinstlled:
Sven Joachim <svenjoac@gmx.de> wrote:
> This happens because the file /etc/samba/smb.conf is managed with ucf(1)
> and not shipped in the package, hence dpkg does not know about it.
Thanks for explanation.
Is Debian leaving the old way of maintaining config files in favor of
ucf?
>> How to get the file reinstalled, amongst purging and reinstalling it?
>
> Set the UCF_FORCE_CONFFMISS environment variable, e.g.
>
> # UCF_FORCE_CONFFMISS=1 apt-get --reinstall install samba-common
>
> should do the trick.
Maybe dpkg should set this variable when it's called with confmiss
option... it kindof sucks finding out that documented way to
restore config file does not work.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Saving Private Ryan...
Private Ryan exists. Overwrite? (Y/N)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: jjnl2c$e1o$1@dough.gmane.org">http://lists.debian.org/jjnl2c$e1o$1@dough.gmane.org
03-13-2012, 04:54 PM
Andrei POPESCU
force-confmiss does not work
On Ma, 13 mar 12, 14:19:56, Matus UHLAR - fantomas wrote:
>
> Thanks for explanation.
> Is Debian leaving the old way of maintaining config files in favor of
> ucf?
As far as I can tell ucf makes sense only in some cases (see the
description of the package, it's quite informative).
> Maybe dpkg should set this variable when it's called with confmiss
> option... it kindof sucks finding out that documented way to
> restore config file does not work.
You could file a wishlist bug against dpkg.
Kind regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic