Ubuntu 16.04 missing files from /etc











up vote
0
down vote

favorite












I have three Ubuntu 16.04 installation.



After running a dpkg -V I see, the /etc/default/chromium-browser is missing on all of them, and /etc/init.d/keyboard-setup missing from two of them, but both contains a keyboard-setup.dpkg-bak.



Why are these files missing?



The /etc/default/chromium-browser is missing even if I remove & purge chromium-browser, chromium-browser-i18n, then reinstall these packages. There is nothing about it in the dpkg.log.



Later editing: this question differs from the given possible duplicate, because I don't want to repair it, I'm looking for the cause, why are these files missing. They weren't deleted accidentally. (But already I got a - possibly - good answer by muru)










share|improve this question









New contributor




user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3




    Possible duplicate of How can I restore configuration files?
    – muru
    yesterday






  • 2




    @muru: false positive... ;) I don't want to restore these files, I'd like to know, why are they missing. The /etc/default/chromium-browser is on the .deb, but mssing after installing the package. It looks like if apt/dpkg doesn't copy that file to /etc/default
    – user895804
    22 hours ago












  • That.. is near impossible to tell. Could be some script you run. Could be how you do your upgrades.
    – muru
    22 hours ago










  • @muru... read my comment again, please! I've edited it.
    – user895804
    22 hours ago










  • /etc/default/chromium-broswer is in /etc, so it's a config file. conffiles are treated specially by dpkg; once deleted by an admin, they don't automatically get restored when the package is re-installed or upgraded (because dpkg assumes the admin has a reason for removing or modifying conffiles). See dupe.
    – muru
    22 hours ago

















up vote
0
down vote

favorite












I have three Ubuntu 16.04 installation.



After running a dpkg -V I see, the /etc/default/chromium-browser is missing on all of them, and /etc/init.d/keyboard-setup missing from two of them, but both contains a keyboard-setup.dpkg-bak.



Why are these files missing?



The /etc/default/chromium-browser is missing even if I remove & purge chromium-browser, chromium-browser-i18n, then reinstall these packages. There is nothing about it in the dpkg.log.



Later editing: this question differs from the given possible duplicate, because I don't want to repair it, I'm looking for the cause, why are these files missing. They weren't deleted accidentally. (But already I got a - possibly - good answer by muru)










share|improve this question









New contributor




user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3




    Possible duplicate of How can I restore configuration files?
    – muru
    yesterday






  • 2




    @muru: false positive... ;) I don't want to restore these files, I'd like to know, why are they missing. The /etc/default/chromium-browser is on the .deb, but mssing after installing the package. It looks like if apt/dpkg doesn't copy that file to /etc/default
    – user895804
    22 hours ago












  • That.. is near impossible to tell. Could be some script you run. Could be how you do your upgrades.
    – muru
    22 hours ago










  • @muru... read my comment again, please! I've edited it.
    – user895804
    22 hours ago










  • /etc/default/chromium-broswer is in /etc, so it's a config file. conffiles are treated specially by dpkg; once deleted by an admin, they don't automatically get restored when the package is re-installed or upgraded (because dpkg assumes the admin has a reason for removing or modifying conffiles). See dupe.
    – muru
    22 hours ago















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have three Ubuntu 16.04 installation.



After running a dpkg -V I see, the /etc/default/chromium-browser is missing on all of them, and /etc/init.d/keyboard-setup missing from two of them, but both contains a keyboard-setup.dpkg-bak.



Why are these files missing?



The /etc/default/chromium-browser is missing even if I remove & purge chromium-browser, chromium-browser-i18n, then reinstall these packages. There is nothing about it in the dpkg.log.



Later editing: this question differs from the given possible duplicate, because I don't want to repair it, I'm looking for the cause, why are these files missing. They weren't deleted accidentally. (But already I got a - possibly - good answer by muru)










share|improve this question









New contributor




user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have three Ubuntu 16.04 installation.



After running a dpkg -V I see, the /etc/default/chromium-browser is missing on all of them, and /etc/init.d/keyboard-setup missing from two of them, but both contains a keyboard-setup.dpkg-bak.



Why are these files missing?



The /etc/default/chromium-browser is missing even if I remove & purge chromium-browser, chromium-browser-i18n, then reinstall these packages. There is nothing about it in the dpkg.log.



Later editing: this question differs from the given possible duplicate, because I don't want to repair it, I'm looking for the cause, why are these files missing. They weren't deleted accidentally. (But already I got a - possibly - good answer by muru)







apt keyboard configuration chromium






share|improve this question









New contributor




user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 17 hours ago





















New contributor




user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 18 at 14:46









user895804

32




32




New contributor




user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user895804 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 3




    Possible duplicate of How can I restore configuration files?
    – muru
    yesterday






  • 2




    @muru: false positive... ;) I don't want to restore these files, I'd like to know, why are they missing. The /etc/default/chromium-browser is on the .deb, but mssing after installing the package. It looks like if apt/dpkg doesn't copy that file to /etc/default
    – user895804
    22 hours ago












  • That.. is near impossible to tell. Could be some script you run. Could be how you do your upgrades.
    – muru
    22 hours ago










  • @muru... read my comment again, please! I've edited it.
    – user895804
    22 hours ago










  • /etc/default/chromium-broswer is in /etc, so it's a config file. conffiles are treated specially by dpkg; once deleted by an admin, they don't automatically get restored when the package is re-installed or upgraded (because dpkg assumes the admin has a reason for removing or modifying conffiles). See dupe.
    – muru
    22 hours ago
















  • 3




    Possible duplicate of How can I restore configuration files?
    – muru
    yesterday






  • 2




    @muru: false positive... ;) I don't want to restore these files, I'd like to know, why are they missing. The /etc/default/chromium-browser is on the .deb, but mssing after installing the package. It looks like if apt/dpkg doesn't copy that file to /etc/default
    – user895804
    22 hours ago












  • That.. is near impossible to tell. Could be some script you run. Could be how you do your upgrades.
    – muru
    22 hours ago










  • @muru... read my comment again, please! I've edited it.
    – user895804
    22 hours ago










  • /etc/default/chromium-broswer is in /etc, so it's a config file. conffiles are treated specially by dpkg; once deleted by an admin, they don't automatically get restored when the package is re-installed or upgraded (because dpkg assumes the admin has a reason for removing or modifying conffiles). See dupe.
    – muru
    22 hours ago










3




3




Possible duplicate of How can I restore configuration files?
– muru
yesterday




Possible duplicate of How can I restore configuration files?
– muru
yesterday




2




2




@muru: false positive... ;) I don't want to restore these files, I'd like to know, why are they missing. The /etc/default/chromium-browser is on the .deb, but mssing after installing the package. It looks like if apt/dpkg doesn't copy that file to /etc/default
– user895804
22 hours ago






@muru: false positive... ;) I don't want to restore these files, I'd like to know, why are they missing. The /etc/default/chromium-browser is on the .deb, but mssing after installing the package. It looks like if apt/dpkg doesn't copy that file to /etc/default
– user895804
22 hours ago














That.. is near impossible to tell. Could be some script you run. Could be how you do your upgrades.
– muru
22 hours ago




That.. is near impossible to tell. Could be some script you run. Could be how you do your upgrades.
– muru
22 hours ago












@muru... read my comment again, please! I've edited it.
– user895804
22 hours ago




@muru... read my comment again, please! I've edited it.
– user895804
22 hours ago












/etc/default/chromium-broswer is in /etc, so it's a config file. conffiles are treated specially by dpkg; once deleted by an admin, they don't automatically get restored when the package is re-installed or upgraded (because dpkg assumes the admin has a reason for removing or modifying conffiles). See dupe.
– muru
22 hours ago






/etc/default/chromium-broswer is in /etc, so it's a config file. conffiles are treated specially by dpkg; once deleted by an admin, they don't automatically get restored when the package is re-installed or upgraded (because dpkg assumes the admin has a reason for removing or modifying conffiles). See dupe.
– muru
22 hours ago












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Turns out, both these files are special cases.





/etc/init.d/keyboard-setup was long obsolete - when Ubuntu used Upstart, there was an Upstart job for this, so the init.d script was never properly used. When Ubuntu moved to systemd, this should have been changed, but was overlooked. A post-release update added a systemd keyboard-setup.service, properly obsoleting /etc/init.d/keyboard-setup. If you install 16.04 from the original ISO and upgrade keyboard-setup, you'll see something like this in apt's output:



Obsolete conffile /etc/init.d/keyboard-setup has been modified by you, renaming to .dpkg-bak


(Not that you modified it, but ...) That's why there's a dpkg-bak file for /etc/init.d/keyboard-setup. You can ignore it. See LP#1579267 for details.





/etc/default/chromium-browser is weirder, because chromium-browser's postinst script actually deletes it out of hand:



$ dpkg-deb --ctrl-tarfile chromium-browser_70.0.3538.77-0ubuntu0.16.04.1_amd64.deb | tar x -O ./postinst
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
update-alternatives --install /usr/bin/x-www-browser
x-www-browser /usr/bin/chromium-browser 40
update-alternatives --install /usr/bin/gnome-www-browser
gnome-www-browser /usr/bin/chromium-browser 40
fi

rm -f /etc/default/chromium-browser


It has been this way since 2009. Some time in the dark ages /usr/bin/chromium-browser used to source /etc/default/chromium-browser, but now it sources /etc/chromium-browser/default (likely so that all chromium-browser config files can be kept in the same directory).



This missing file can also be ignored.






share|improve this answer























  • OMG... thanks, I've thought, thes are signs that my home network is cracked. (There were many weird things on my net in a very short time)
    – user895804
    19 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






user895804 is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093978%2fubuntu-16-04-missing-files-from-etc%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Turns out, both these files are special cases.





/etc/init.d/keyboard-setup was long obsolete - when Ubuntu used Upstart, there was an Upstart job for this, so the init.d script was never properly used. When Ubuntu moved to systemd, this should have been changed, but was overlooked. A post-release update added a systemd keyboard-setup.service, properly obsoleting /etc/init.d/keyboard-setup. If you install 16.04 from the original ISO and upgrade keyboard-setup, you'll see something like this in apt's output:



Obsolete conffile /etc/init.d/keyboard-setup has been modified by you, renaming to .dpkg-bak


(Not that you modified it, but ...) That's why there's a dpkg-bak file for /etc/init.d/keyboard-setup. You can ignore it. See LP#1579267 for details.





/etc/default/chromium-browser is weirder, because chromium-browser's postinst script actually deletes it out of hand:



$ dpkg-deb --ctrl-tarfile chromium-browser_70.0.3538.77-0ubuntu0.16.04.1_amd64.deb | tar x -O ./postinst
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
update-alternatives --install /usr/bin/x-www-browser
x-www-browser /usr/bin/chromium-browser 40
update-alternatives --install /usr/bin/gnome-www-browser
gnome-www-browser /usr/bin/chromium-browser 40
fi

rm -f /etc/default/chromium-browser


It has been this way since 2009. Some time in the dark ages /usr/bin/chromium-browser used to source /etc/default/chromium-browser, but now it sources /etc/chromium-browser/default (likely so that all chromium-browser config files can be kept in the same directory).



This missing file can also be ignored.






share|improve this answer























  • OMG... thanks, I've thought, thes are signs that my home network is cracked. (There were many weird things on my net in a very short time)
    – user895804
    19 hours ago















up vote
1
down vote



accepted










Turns out, both these files are special cases.





/etc/init.d/keyboard-setup was long obsolete - when Ubuntu used Upstart, there was an Upstart job for this, so the init.d script was never properly used. When Ubuntu moved to systemd, this should have been changed, but was overlooked. A post-release update added a systemd keyboard-setup.service, properly obsoleting /etc/init.d/keyboard-setup. If you install 16.04 from the original ISO and upgrade keyboard-setup, you'll see something like this in apt's output:



Obsolete conffile /etc/init.d/keyboard-setup has been modified by you, renaming to .dpkg-bak


(Not that you modified it, but ...) That's why there's a dpkg-bak file for /etc/init.d/keyboard-setup. You can ignore it. See LP#1579267 for details.





/etc/default/chromium-browser is weirder, because chromium-browser's postinst script actually deletes it out of hand:



$ dpkg-deb --ctrl-tarfile chromium-browser_70.0.3538.77-0ubuntu0.16.04.1_amd64.deb | tar x -O ./postinst
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
update-alternatives --install /usr/bin/x-www-browser
x-www-browser /usr/bin/chromium-browser 40
update-alternatives --install /usr/bin/gnome-www-browser
gnome-www-browser /usr/bin/chromium-browser 40
fi

rm -f /etc/default/chromium-browser


It has been this way since 2009. Some time in the dark ages /usr/bin/chromium-browser used to source /etc/default/chromium-browser, but now it sources /etc/chromium-browser/default (likely so that all chromium-browser config files can be kept in the same directory).



This missing file can also be ignored.






share|improve this answer























  • OMG... thanks, I've thought, thes are signs that my home network is cracked. (There were many weird things on my net in a very short time)
    – user895804
    19 hours ago













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Turns out, both these files are special cases.





/etc/init.d/keyboard-setup was long obsolete - when Ubuntu used Upstart, there was an Upstart job for this, so the init.d script was never properly used. When Ubuntu moved to systemd, this should have been changed, but was overlooked. A post-release update added a systemd keyboard-setup.service, properly obsoleting /etc/init.d/keyboard-setup. If you install 16.04 from the original ISO and upgrade keyboard-setup, you'll see something like this in apt's output:



Obsolete conffile /etc/init.d/keyboard-setup has been modified by you, renaming to .dpkg-bak


(Not that you modified it, but ...) That's why there's a dpkg-bak file for /etc/init.d/keyboard-setup. You can ignore it. See LP#1579267 for details.





/etc/default/chromium-browser is weirder, because chromium-browser's postinst script actually deletes it out of hand:



$ dpkg-deb --ctrl-tarfile chromium-browser_70.0.3538.77-0ubuntu0.16.04.1_amd64.deb | tar x -O ./postinst
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
update-alternatives --install /usr/bin/x-www-browser
x-www-browser /usr/bin/chromium-browser 40
update-alternatives --install /usr/bin/gnome-www-browser
gnome-www-browser /usr/bin/chromium-browser 40
fi

rm -f /etc/default/chromium-browser


It has been this way since 2009. Some time in the dark ages /usr/bin/chromium-browser used to source /etc/default/chromium-browser, but now it sources /etc/chromium-browser/default (likely so that all chromium-browser config files can be kept in the same directory).



This missing file can also be ignored.






share|improve this answer














Turns out, both these files are special cases.





/etc/init.d/keyboard-setup was long obsolete - when Ubuntu used Upstart, there was an Upstart job for this, so the init.d script was never properly used. When Ubuntu moved to systemd, this should have been changed, but was overlooked. A post-release update added a systemd keyboard-setup.service, properly obsoleting /etc/init.d/keyboard-setup. If you install 16.04 from the original ISO and upgrade keyboard-setup, you'll see something like this in apt's output:



Obsolete conffile /etc/init.d/keyboard-setup has been modified by you, renaming to .dpkg-bak


(Not that you modified it, but ...) That's why there's a dpkg-bak file for /etc/init.d/keyboard-setup. You can ignore it. See LP#1579267 for details.





/etc/default/chromium-browser is weirder, because chromium-browser's postinst script actually deletes it out of hand:



$ dpkg-deb --ctrl-tarfile chromium-browser_70.0.3538.77-0ubuntu0.16.04.1_amd64.deb | tar x -O ./postinst
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
update-alternatives --install /usr/bin/x-www-browser
x-www-browser /usr/bin/chromium-browser 40
update-alternatives --install /usr/bin/gnome-www-browser
gnome-www-browser /usr/bin/chromium-browser 40
fi

rm -f /etc/default/chromium-browser


It has been this way since 2009. Some time in the dark ages /usr/bin/chromium-browser used to source /etc/default/chromium-browser, but now it sources /etc/chromium-browser/default (likely so that all chromium-browser config files can be kept in the same directory).



This missing file can also be ignored.







share|improve this answer














share|improve this answer



share|improve this answer








edited 20 hours ago

























answered 21 hours ago









muru

134k19282482




134k19282482












  • OMG... thanks, I've thought, thes are signs that my home network is cracked. (There were many weird things on my net in a very short time)
    – user895804
    19 hours ago


















  • OMG... thanks, I've thought, thes are signs that my home network is cracked. (There were many weird things on my net in a very short time)
    – user895804
    19 hours ago
















OMG... thanks, I've thought, thes are signs that my home network is cracked. (There were many weird things on my net in a very short time)
– user895804
19 hours ago




OMG... thanks, I've thought, thes are signs that my home network is cracked. (There were many weird things on my net in a very short time)
– user895804
19 hours ago










user895804 is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















user895804 is a new contributor. Be nice, and check out our Code of Conduct.













user895804 is a new contributor. Be nice, and check out our Code of Conduct.












user895804 is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093978%2fubuntu-16-04-missing-files-from-etc%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei