Submitted by saoullabit on Thu, 04/19/2012 - 06:44 Pro Licensee
Hi, is it possible to answer during the packages update APT to : NO because the updates force me (maybe "us") to restore previous conf files of nginx, apache ... If by default NO is selected the updates would be saemless ...
Regards, Marc CUCULIERE
Status:
Active
Comments
Submitted by andreychek on Thu, 04/19/2012 - 10:14 Comment #1
Hmm, that's an unusual issue!
So you're saying that when updating Apache from within Virtualmin, that you've seen it overwrite the Apache config file?
That's not the behavior that should occur during an upgrade.
In theory, if a config file has been updated, Debian should leave it alone by default... that is described here:
http://www.debian.org/doc/debian-policy/ap-pkg-conffiles.html
I unfortunately haven't been able to reproduce that on my Debian systems here -- performing an Apache update from within Virtualmin didn't cause the config files to be overwritten.
To assist us in troubleshooting that issue, what is the output of these commands on your system:
dpkg -l 'apache2'
ls -l /etc/apt/preferences.d/
ls -l /etc/apt/apt.conf.d/
Submitted by saoullabit on Tue, 04/24/2012 - 05:01 Pro Licensee Comment #2
Hi ! Sorry for the delay did not recieve the issue update mail, anyway. For the First server here is the result :
ii apache2 2.2.16-6+squeeze7 Apache HTTP Server metapackage
root@sd-13014:~# ls -l /etc/apt/preferences.d/
total 0
root@sd-13014:~# ls -l /etc/apt/apt.conf.d/
total 12
-rw-r--r-- 1 root root 395 25 janv. 2011 01autoremove
-rw-r--r-- 1 root root 141 11 déc. 2010 20listchanges
-rw-r--r-- 1 root root 182 30 janv. 2011 70debconf
For the second server :
ii apache2 2.2.16-6+squee Apache HTTP Server metapackage
root@sd-34883:~# ls -l /etc/apt/preferences.d/
total 0
root@sd-34883:~# ls -l /etc/apt/apt.conf.d/
total 12
-rw-r--r-- 1 root root 395 25 janv. 2011 01autoremove
-rw-r--r-- 1 root root 141 11 déc. 2010 20listchanges
-rw-r--r-- 1 root root 182 30 janv. 2011 70debconf
I'll check the links that you provided, Regards, Marc
Submitted by andreychek on Tue, 04/24/2012 - 08:42 Comment #3
Are you seeing this same problem on both servers, or just on one of them?
The config files there look identical, so it shouldn't matter which one you pull this information from, but what output do you get if you run these commands on one of those servers:
cat /etc/apt/apt.conf.d/01autoremove
cat /etc/apt/apt.conf.d/20listchanges
cat /etc/apt/apt.conf.d/70debconf
Thanks!
Submitted by saoullabit on Wed, 04/25/2012 - 06:55 Pro Licensee Comment #4
Hi, Here you are first server
saoullabit@sd-13014:~$ cat /etc/apt/apt.conf.d/01autoremove
APT
{
NeverAutoRemove
{
"^firmware-linux.*";
"^linux-firmware$";
"^linux-image.*";
"^kfreebsd-image.*";
"^linux-restricted-modules.*";
"^linux-ubuntu-modules-.*";
};
Never-MarkAuto-Sections
{
"metapackages";
"restricted/metapackages";
"universe/metapackages";
"multiverse/metapackages";
"oldlibs";
"restricted/oldlibs";
"universe/oldlibs";
"multiverse/oldlibs";
};
};
saoullabit@sd-13014:~$ cat /etc/apt/apt.conf.d/20listchanges
DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -ne 10"; };
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
saoullabit@sd-13014:~$ cat /etc/apt/apt.conf.d/70debconf
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
second server
root@sd-34883:/mnt/ramdisk# cat /etc/apt/apt.conf.d/01autoremove
APT
{
NeverAutoRemove
{
"^firmware-linux.*";
"^linux-firmware$";
"^linux-image.*";
"^kfreebsd-image.*";
"^linux-restricted-modules.*";
"^linux-ubuntu-modules-.*";
};
Never-MarkAuto-Sections
{
"metapackages";
"restricted/metapackages";
"universe/metapackages";
"multiverse/metapackages";
"oldlibs";
"restricted/oldlibs";
"universe/oldlibs";
"multiverse/oldlibs";
};
};
root@sd-34883:/mnt/ramdisk# cat /etc/apt/apt.conf.d/20listchanges
DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -ne 10"; };
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
root@sd-34883:/mnt/ramdisk# cat /etc/apt/apt.conf.d/70debconf
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
I have to be more precise : The Nginx Files have bleen blown away not the Apache ones