Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236124 > unrolled thread
| Started by | Jaikumar Sharma <jaikumar.sharma@gmail.com> |
|---|---|
| First post | 2021-06-15 11:10 +0200 |
| Last post | 2021-06-16 06:20 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.debian.user
Preserving locally modified configuration files - Dpkg::Options --force-confdef & --force-confold not working on command line Jaikumar Sharma <jaikumar.sharma@gmail.com> - 2021-06-15 11:10 +0200
Re: Preserving locally modified configuration files - Dpkg::Options --force-confdef & --force-confold not working on command line Jaikumar Sharma <jaikumar.sharma@gmail.com> - 2021-06-15 12:40 +0200
Re: Preserving locally modified configuration files - Dpkg::Options --force-confdef & --force-confold not working on command line "jaikuma...@gmail.com" <jaikumar.sharma@gmail.com> - 2021-06-15 12:50 +0200
Re: Preserving locally modified configuration files - Dpkg::Options --force-confdef & --force-confold not working on command line Brian <ad44@cityscape.co.uk> - 2021-06-15 13:00 +0200
Re: Preserving locally modified configuration files - Dpkg::Options --force-confdef & --force-confold not working on command line Jaikumar Sharma <jaikumar.sharma@gmail.com> - 2021-06-16 06:20 +0200
| From | Jaikumar Sharma <jaikumar.sharma@gmail.com> |
|---|---|
| Date | 2021-06-15 11:10 +0200 |
| Subject | Preserving locally modified configuration files - Dpkg::Options --force-confdef & --force-confold not working on command line |
| Message-ID | <Cqdf3-41O-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hi,
In debian 9.13 server, i'm using custom configuration (locally modified)
file /etc/samba/smb.conf , I do not want to upgrade this file and retain
the old configuration file without prompting during automatic upgrades but
it is still giving me the prompt even after specifying on command line :
sudo apt-get dist-upgrade -o Dpkg::Options::=--force-confdef -o
Dpkg::Options::=--force-confold -y --allow-unauthenticated
Still prompt/complain about locally modified configuration file, as per
documentation it should work.
and
I've also tried to put these below command in a config file under
/etc/apt/apt.conf.d/50-unattended-upgrades :
Dpkg::Options {
"--force-confdef";
"--force-confold";
}
but behaviour is the same in both cases.
Does somebody know what may be wrong here? or i'm doing it wrong?
Thank you.
Regards,
Jaikumar
[toc] | [next] | [standalone]
| From | Jaikumar Sharma <jaikumar.sharma@gmail.com> |
|---|---|
| Date | 2021-06-15 12:40 +0200 |
| Message-ID | <CqeE9-4Tc-5@gated-at.bofh.it> |
| In reply to | #236124 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Jun 15, 2021 at 2:34 PM Jaikumar Sharma <jaikumar.sharma@gmail.com>
wrote:
> Hi,
>
> In debian 9.13 server, i'm using custom configuration (locally modified)
> file /etc/samba/smb.conf , I do not want to upgrade this file and retain
> the old configuration file without prompting during automatic upgrades but
> it is still giving me the prompt even after specifying on command line :
>
> sudo apt-get dist-upgrade -o Dpkg::Options::=--force-confdef -o
> Dpkg::Options::=--force-confold -y --allow-unauthenticated
>
> Still prompt/complain about locally modified configuration file, as per
> documentation it should work.
>
> and
>
> I've also tried to put these below command in a config file under
> /etc/apt/apt.conf.d/50-unattended-upgrades :
>
> Dpkg::Options {
> "--force-confdef";
> "--force-confold";
> }
>
Seems it co-relates with already filed bug
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=316049
[toc] | [prev] | [next] | [standalone]
| From | "jaikuma...@gmail.com" <jaikumar.sharma@gmail.com> |
|---|---|
| Date | 2021-06-15 12:50 +0200 |
| Message-ID | <CqeNP-4Wt-1@gated-at.bofh.it> |
| In reply to | #236124 |
On Tuesday, June 15, 2021 at 2:40:04 PM UTC+5:30, jaikuma...@gmail.com wrote:
> Hi,
>
> In debian 9.13 server, i'm using custom configuration (locally modified) file /etc/samba/smb.conf , I do not want to upgrade this file and retain the old configuration file without prompting during automatic upgrades but it is still giving me the prompt even after specifying on command line :
>
> sudo apt-get dist-upgrade -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -y --allow-unauthenticated
>
> Still prompt/complain about locally modified configuration file, as per documentation it should work.
>
> and
>
> I've also tried to put these below command in a config file under /etc/apt/apt.conf.d/50-unattended-upgrades :
>
> Dpkg::Options {
> "--force-confdef";
> "--force-confold";
> }
Seems it co-relates with already filed bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=316049
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2021-06-15 13:00 +0200 |
| Message-ID | <CqeXv-4ZK-1@gated-at.bofh.it> |
| In reply to | #236124 |
On Tue 15 Jun 2021 at 14:34:12 +0530, Jaikumar Sharma wrote:
> Hi,
>
> In debian 9.13 server, i'm using custom configuration (locally modified)
> file /etc/samba/smb.conf , I do not want to upgrade this file and retain
> the old configuration file without prompting during automatic upgrades but
> it is still giving me the prompt even after specifying on command line :
>
> sudo apt-get dist-upgrade -o Dpkg::Options::=--force-confdef -o
> Dpkg::Options::=--force-confold -y --allow-unauthenticated
>
> Still prompt/complain about locally modified configuration file, as per
> documentation it should work.
>
> and
>
> I've also tried to put these below command in a config file under
> /etc/apt/apt.conf.d/50-unattended-upgrades :
>
> Dpkg::Options {
> "--force-confdef";
> "--force-confold";
> }
>
> but behaviour is the same in both cases.
>
> Does somebody know what may be wrong here? or i'm doing it wrong?
I wonder whether using dpkg-divert(1) would help in preserving your
modified file?
--
Brian.
[toc] | [prev] | [next] | [standalone]
| From | Jaikumar Sharma <jaikumar.sharma@gmail.com> |
|---|---|
| Date | 2021-06-16 06:20 +0200 |
| Message-ID | <CqvbX-6x2-1@gated-at.bofh.it> |
| In reply to | #236128 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Jun 15, 2021 at 4:22 PM Brian <ad44@cityscape.co.uk> wrote: > On Tue 15 Jun 2021 at 14:34:12 +0530, Jaikumar Sharma wrote: > I wonder whether using dpkg-divert(1) would help in preserving your > modified file? > > Yes, this option was intentionally avoided by me because of scripting the maintainer scripts. I only have the option to use this now. Thanks Brian :) -- Jaikumar
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web