Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 9696  / 3 Years ago, tue, september 14, 2021, 11:18:14

I'm upgrading ubuntu from 13.10 to 14.04, during the upgrade it is asking the following question:




Replace the customized configuration file '/etc/sysctl.conf'?



You will lose any changes made to this configuration file if you
choose to replace it with the newer version.



Difference between the files:



--- /etc/sysctl.conf  2014-04-21 21:38:34.970070205 +0530

+++ /etc/sysctl.conf.dpkg-new 2013-04-01 07:55:31.000000000 +0530
@@ -1,6 +1,6 @@
#
# /etc/sysctl.conf - Configuration file for setting system variables
-# See /etc/sysctl.d/ for additional system variables
+# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#

@@ -58,7 +58,3 @@
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
-# disable ipv6
-net.ipv6.conf.all.disable_ipv6 = 1
-net.ipv6.conf.default.disable_ipv6 = 1
-net.ipv6.conf.lo.disable_ipv6 = 1



I don't understand what this means, I tried googling for an answer but every post has a different file name for the same question and the answers are varying. Should I keep the file or replace it?


More From » upgrade

 Answers
7

During release (or package) upgrades, the package manager usually gives you a few options:




  1. Keep your version.

  2. Keep the package maintainer's version.

  3. Show the difference.

  4. Do an (experimental) three-way merge.

  5. Open a shell.



With (1) and (2), no file is discarded. With (1), the package maintainer's version is saved with the extension dpkg-dist, and with (2), your version is saved with the extension dpkg-old. You're using (3). I have never used the other two, hopefully someone who has will come along and post an answer.



I personally always choose (1), and then manually merge in the changes (if they're worthwile) after upgrade - though I assume (5) can be used to do this.



Note that this prompt comes up only if the file was modified outside the package management system (that is, by a user, like you). So the changes were presumably made by you for a reason, and usually you'd still want those changes around.


[#23249] Wednesday, September 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ateact

Total Points: 176
Total Questions: 130
Total Answers: 122

Location: Egypt
Member since Sun, Apr 23, 2023
1 Year ago
;