MX Updater - replace conf file and automatic yes option in preferences

Message
Author
User avatar
bin
Posts: 68
Joined: Sun Aug 30, 2009 1:53 am

MX Updater - replace conf file and automatic yes option in preferences

#1 Post by bin »

MX21.x
I am puzzled by the entry in MX-Updater>Preferences>automatically answer 'yes' to all prompts during upgrade.

The reason I am puzzled is because if updating 'manually' when faced with FOR EXAMPLE:-

Code: Select all

Configuration file '/etc/grub.d/30_uefi-firmware'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** 30_uefi-firmware (Y/I/N/O/D/Z) [default=N] ? 
the default is N - which is opposite to the suggested option in preferences.

Once upon a time I said y to one of these prompts - I have no idea what it was now - at least 10 years ago - but it broke things so I have always always always said N ever since.

Now, I suspect for stuff like Grub it probably is OK to say yes, but what if it is something else. Certainly in recent years I cannot think of other packages that have required a response - perhaps virtualbox something a few months back. The reason I ask is that I'm a great fan of unattended upgrades and this option is clearly a useful part of that. As I'm contemplating switching to GPT/EPS grub updates should no longer require me to define the boot point so should be silent.

Some other updates (though I cannot think of any right now) - may want the answer yes.

Can anyone please shed any light on this - am I barking up the tree?

User avatar
davidy
Posts: 818
Joined: Sat Jul 03, 2021 1:59 pm

Re: MX Updater - replace conf file and automatic yes option in preferences

#2 Post by davidy »

I've seen that prompt. The purpose of updates is just that. Update to the newer files/versions. Generally speaking, one will trust them so the option to answer yes automatically is for your convenience. When I say trust them I mean the devs, the maintainers. You are making a mountain of a mole hill. Providing your system is running well, no need to question every little thing. IOW, trust is good. And so are regular backups in case something goes wrong.
Sys76 LemurPro-mx-23.4, EliteMinis HM90-mx-21.3, Deskmini UM350-phoenixLite win10, Qnap 12tb nas, Protectli FW4C-opnsense(=゜ω゜)

zero privacy = zero security . All MX'd Up
UAP = up above people

User avatar
Eadwine Rose
Administrator
Posts: 14806
Joined: Wed Jul 12, 2006 2:10 am

Re: MX Updater - replace conf file and automatic yes option in preferences

#3 Post by Eadwine Rose »

I always go by this: have I customized anything? If so: keep what I have.

For instance.. suppose fstab updates. I do not want to exchange my version for a standardized one.

There is a situation where I do accept changes, that is upon a new install. Nothing has been adjusted then, so it is safe to upgrade and replace. AFTER I have customized, hands off again.

So.. never will I ever accept automatic yesses. I want to have that in my own hands so I can pick and choose. For me it has nothing to do with "do I trust the devs".
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
davidy
Posts: 818
Joined: Sat Jul 03, 2021 1:59 pm

Re: MX Updater - replace conf file and automatic yes option in preferences

#4 Post by davidy »

Being the every system is different, the only person to trust is yourself. Agreeing with a prompt is meaningless.
Sys76 LemurPro-mx-23.4, EliteMinis HM90-mx-21.3, Deskmini UM350-phoenixLite win10, Qnap 12tb nas, Protectli FW4C-opnsense(=゜ω゜)

zero privacy = zero security . All MX'd Up
UAP = up above people

User avatar
Adrian
Developer
Posts: 9012
Joined: Wed Jul 12, 2006 1:42 am

Re: MX Updater - replace conf file and automatic yes option in preferences

#5 Post by Adrian »

Most of the times it's best to choose N especially if you or MX customized that configuration file. Theoretical best thing (best kind of best things) would be to press D, examine the differences and see if it makes sense to accept the change, but not everyone understands diffs and configuration files... There should be an easy way to go back and forth between previous and current versions after you make a selection, but while possible, Debian is not about being easy :grin:

User avatar
Jerry3904
Administrator
Posts: 23269
Joined: Wed Jul 19, 2006 6:13 am

Re: MX Updater - replace conf file and automatic yes option in preferences

#6 Post by Jerry3904 »

Eadwine Rose wrote: Tue Feb 07, 2023 7:19 am I always go by this: have I customized anything? If so: keep what I have.
That's exactly what I do, but Adrian's advice is sound.

I consider that little dialog the most confusing aspect for users of Debian and therefore MX--and I keep hoping that there might be a way to show a help message when that comes up.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
fehlix
Developer
Posts: 12734
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX Updater - replace conf file and automatic yes option in preferences

#7 Post by fehlix »

bin wrote: Tue Feb 07, 2023 6:28 am MX21.x
I am puzzled by the entry in MX-Updater>Preferences>automatically answer 'yes' to all prompts during upgrade.
This "yes" is closly related to apt/apt-get question whether or not to proceed with package upgrade or not.
bin wrote: Tue Feb 07, 2023 6:28 am The reason I am puzzled is because if updating 'manually' when faced with FOR EXAMPLE:-

Code: Select all

Configuration file '/etc/grub.d/30_uefi-firmware'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** 30_uefi-firmware (Y/I/N/O/D/Z) [default=N] ? 
the default is N - which is opposite to the suggested option in preferences.
This question about configuration changes is on another level, not part of the general "yes" to proceed for apt.
IN theory we could try to force to keep-old with "N" (= keep) the existing conf files, but that may not always be what the user want's, hence we kept the question.
bin wrote: Tue Feb 07, 2023 6:28 am Now, I suspect for stuff like Grub it probably is OK to say yes, but what if it is something else.
Generaly, if you have no idea what it is keep the old/existing and hit Enter (or press N/n and Enter)
Esp. for GRUB conf files adjusted by MX if overwritten with Debian's default, you may
get interesting results, with something like Debian Gnu-Linux with GRUB menu entry instead of MX Linux or in addition to.

User avatar
Eadwine Rose
Administrator
Posts: 14806
Joined: Wed Jul 12, 2006 2:10 am

Re: MX Updater - replace conf file and automatic yes option in preferences

#8 Post by Eadwine Rose »

I remember an interesting result not too long ago, where loads of users had problems.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
dolphin_oracle
Developer
Posts: 22343
Joined: Sun Dec 16, 2007 12:17 pm

Re: MX Updater - replace conf file and automatic yes option in preferences

#9 Post by dolphin_oracle »

its almost always correct to say No.

making these things even more rare is on the list for mx23.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

FX-Tech
Posts: 19
Joined: Thu Sep 17, 2020 11:30 pm

Re: MX Updater - replace conf file and automatic yes option in preferences

#10 Post by FX-Tech »

Eadwine Rose wrote: Tue Feb 07, 2023 7:19 am I always go by this: have I customized anything? If so: keep what I have.

For instance.. suppose fstab updates. I do not want to exchange my version for a standardized one.
That's it exactly. I have custom configs for a lot of things like samba and cups, etc. The prompts are there so that a custom config does not get overwritten.

Post Reply

Return to “General”