Apache2 installation error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite
1












I am getting the following errors while installing apache2 on Ubuntu .



dpkg: unrecoverable fatal error, aborting:
unknown group 'mlocate' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)


I think , I've messed up with apache-data .







share|improve this question






















  • Have anyone faced the same issue before ?
    – Raja Hassan
    May 28 at 8:29










  • Please run and post the output of sudo apt-get update && sudo apt-get --simulate dist-upgrade. As far as I can tell, Apache has nothing to do with it.
    – AlexP
    May 28 at 8:51














up vote
1
down vote

favorite
1












I am getting the following errors while installing apache2 on Ubuntu .



dpkg: unrecoverable fatal error, aborting:
unknown group 'mlocate' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)


I think , I've messed up with apache-data .







share|improve this question






















  • Have anyone faced the same issue before ?
    – Raja Hassan
    May 28 at 8:29










  • Please run and post the output of sudo apt-get update && sudo apt-get --simulate dist-upgrade. As far as I can tell, Apache has nothing to do with it.
    – AlexP
    May 28 at 8:51












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I am getting the following errors while installing apache2 on Ubuntu .



dpkg: unrecoverable fatal error, aborting:
unknown group 'mlocate' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)


I think , I've messed up with apache-data .







share|improve this question














I am getting the following errors while installing apache2 on Ubuntu .



dpkg: unrecoverable fatal error, aborting:
unknown group 'mlocate' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)


I think , I've messed up with apache-data .









share|improve this question













share|improve this question




share|improve this question








edited May 28 at 7:56









Kulfy

927423




927423










asked May 28 at 7:47









Raja Hassan

63




63











  • Have anyone faced the same issue before ?
    – Raja Hassan
    May 28 at 8:29










  • Please run and post the output of sudo apt-get update && sudo apt-get --simulate dist-upgrade. As far as I can tell, Apache has nothing to do with it.
    – AlexP
    May 28 at 8:51
















  • Have anyone faced the same issue before ?
    – Raja Hassan
    May 28 at 8:29










  • Please run and post the output of sudo apt-get update && sudo apt-get --simulate dist-upgrade. As far as I can tell, Apache has nothing to do with it.
    – AlexP
    May 28 at 8:51















Have anyone faced the same issue before ?
– Raja Hassan
May 28 at 8:29




Have anyone faced the same issue before ?
– Raja Hassan
May 28 at 8:29












Please run and post the output of sudo apt-get update && sudo apt-get --simulate dist-upgrade. As far as I can tell, Apache has nothing to do with it.
– AlexP
May 28 at 8:51




Please run and post the output of sudo apt-get update && sudo apt-get --simulate dist-upgrade. As far as I can tell, Apache has nothing to do with it.
– AlexP
May 28 at 8:51










2 Answers
2






active

oldest

votes

















up vote
1
down vote













Well I think you should uninstall it.
Type the following command in you terminal to remove all the packages associated to it
and after re-install it "it takes less than a 5 minutes".



sudo apt-get purge apache2
sudo apt-get autoremove

sudo apt-get install apache2


In case you wanna go ahead check out this link: install-apache-mysql-php-on Ubuntu. Am currently relying on it to a little bit how these guys are configured and debugged. It will do you good I believe.






share|improve this answer






















  • both these commands say 'Package ' apache2' is not installed '.
    – Raja Hassan
    May 28 at 10:30










  • It means apache2 is not installed. What you do, type sudo apt-get install apache2 to install it.
    – Onesmus.A
    May 28 at 10:54










  • after executing apt-get install apache2 . I get the above error , which I have asked in question.
    – Raja Hassan
    May 28 at 11:03

















up vote
0
down vote













Googling for the error message comes up with this, which suggests this is a dpkg problem rather than an apache problem. Further googling revelas that mlocate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output. See also updatedb. In other words, this is looks to be a database problem.



Adding the mlocate group (using the 'addgroup' command may help (although this should not be necessary on most Ubuntu versions) and have a look at https://linux.die.net/man/8/updatedb. This may point you in the right direction.






share|improve this answer




















  • sudo sed -i '/mlocate/d' /var/lib/dpkg/statoverride fixed my issue. Thanks all !
    – Raja Hassan
    May 29 at 5:44










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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041111%2fapache2-installation-error%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Well I think you should uninstall it.
Type the following command in you terminal to remove all the packages associated to it
and after re-install it "it takes less than a 5 minutes".



sudo apt-get purge apache2
sudo apt-get autoremove

sudo apt-get install apache2


In case you wanna go ahead check out this link: install-apache-mysql-php-on Ubuntu. Am currently relying on it to a little bit how these guys are configured and debugged. It will do you good I believe.






share|improve this answer






















  • both these commands say 'Package ' apache2' is not installed '.
    – Raja Hassan
    May 28 at 10:30










  • It means apache2 is not installed. What you do, type sudo apt-get install apache2 to install it.
    – Onesmus.A
    May 28 at 10:54










  • after executing apt-get install apache2 . I get the above error , which I have asked in question.
    – Raja Hassan
    May 28 at 11:03














up vote
1
down vote













Well I think you should uninstall it.
Type the following command in you terminal to remove all the packages associated to it
and after re-install it "it takes less than a 5 minutes".



sudo apt-get purge apache2
sudo apt-get autoremove

sudo apt-get install apache2


In case you wanna go ahead check out this link: install-apache-mysql-php-on Ubuntu. Am currently relying on it to a little bit how these guys are configured and debugged. It will do you good I believe.






share|improve this answer






















  • both these commands say 'Package ' apache2' is not installed '.
    – Raja Hassan
    May 28 at 10:30










  • It means apache2 is not installed. What you do, type sudo apt-get install apache2 to install it.
    – Onesmus.A
    May 28 at 10:54










  • after executing apt-get install apache2 . I get the above error , which I have asked in question.
    – Raja Hassan
    May 28 at 11:03












up vote
1
down vote










up vote
1
down vote









Well I think you should uninstall it.
Type the following command in you terminal to remove all the packages associated to it
and after re-install it "it takes less than a 5 minutes".



sudo apt-get purge apache2
sudo apt-get autoremove

sudo apt-get install apache2


In case you wanna go ahead check out this link: install-apache-mysql-php-on Ubuntu. Am currently relying on it to a little bit how these guys are configured and debugged. It will do you good I believe.






share|improve this answer














Well I think you should uninstall it.
Type the following command in you terminal to remove all the packages associated to it
and after re-install it "it takes less than a 5 minutes".



sudo apt-get purge apache2
sudo apt-get autoremove

sudo apt-get install apache2


In case you wanna go ahead check out this link: install-apache-mysql-php-on Ubuntu. Am currently relying on it to a little bit how these guys are configured and debugged. It will do you good I believe.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 28 at 10:58









pa4080

11.8k52255




11.8k52255










answered May 28 at 9:50









Onesmus.A

362




362











  • both these commands say 'Package ' apache2' is not installed '.
    – Raja Hassan
    May 28 at 10:30










  • It means apache2 is not installed. What you do, type sudo apt-get install apache2 to install it.
    – Onesmus.A
    May 28 at 10:54










  • after executing apt-get install apache2 . I get the above error , which I have asked in question.
    – Raja Hassan
    May 28 at 11:03
















  • both these commands say 'Package ' apache2' is not installed '.
    – Raja Hassan
    May 28 at 10:30










  • It means apache2 is not installed. What you do, type sudo apt-get install apache2 to install it.
    – Onesmus.A
    May 28 at 10:54










  • after executing apt-get install apache2 . I get the above error , which I have asked in question.
    – Raja Hassan
    May 28 at 11:03















both these commands say 'Package ' apache2' is not installed '.
– Raja Hassan
May 28 at 10:30




both these commands say 'Package ' apache2' is not installed '.
– Raja Hassan
May 28 at 10:30












It means apache2 is not installed. What you do, type sudo apt-get install apache2 to install it.
– Onesmus.A
May 28 at 10:54




It means apache2 is not installed. What you do, type sudo apt-get install apache2 to install it.
– Onesmus.A
May 28 at 10:54












after executing apt-get install apache2 . I get the above error , which I have asked in question.
– Raja Hassan
May 28 at 11:03




after executing apt-get install apache2 . I get the above error , which I have asked in question.
– Raja Hassan
May 28 at 11:03












up vote
0
down vote













Googling for the error message comes up with this, which suggests this is a dpkg problem rather than an apache problem. Further googling revelas that mlocate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output. See also updatedb. In other words, this is looks to be a database problem.



Adding the mlocate group (using the 'addgroup' command may help (although this should not be necessary on most Ubuntu versions) and have a look at https://linux.die.net/man/8/updatedb. This may point you in the right direction.






share|improve this answer




















  • sudo sed -i '/mlocate/d' /var/lib/dpkg/statoverride fixed my issue. Thanks all !
    – Raja Hassan
    May 29 at 5:44














up vote
0
down vote













Googling for the error message comes up with this, which suggests this is a dpkg problem rather than an apache problem. Further googling revelas that mlocate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output. See also updatedb. In other words, this is looks to be a database problem.



Adding the mlocate group (using the 'addgroup' command may help (although this should not be necessary on most Ubuntu versions) and have a look at https://linux.die.net/man/8/updatedb. This may point you in the right direction.






share|improve this answer




















  • sudo sed -i '/mlocate/d' /var/lib/dpkg/statoverride fixed my issue. Thanks all !
    – Raja Hassan
    May 29 at 5:44












up vote
0
down vote










up vote
0
down vote









Googling for the error message comes up with this, which suggests this is a dpkg problem rather than an apache problem. Further googling revelas that mlocate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output. See also updatedb. In other words, this is looks to be a database problem.



Adding the mlocate group (using the 'addgroup' command may help (although this should not be necessary on most Ubuntu versions) and have a look at https://linux.die.net/man/8/updatedb. This may point you in the right direction.






share|improve this answer












Googling for the error message comes up with this, which suggests this is a dpkg problem rather than an apache problem. Further googling revelas that mlocate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output. See also updatedb. In other words, this is looks to be a database problem.



Adding the mlocate group (using the 'addgroup' command may help (although this should not be necessary on most Ubuntu versions) and have a look at https://linux.die.net/man/8/updatedb. This may point you in the right direction.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 28 at 11:22









Frank van Wensveen

1717




1717











  • sudo sed -i '/mlocate/d' /var/lib/dpkg/statoverride fixed my issue. Thanks all !
    – Raja Hassan
    May 29 at 5:44
















  • sudo sed -i '/mlocate/d' /var/lib/dpkg/statoverride fixed my issue. Thanks all !
    – Raja Hassan
    May 29 at 5:44















sudo sed -i '/mlocate/d' /var/lib/dpkg/statoverride fixed my issue. Thanks all !
– Raja Hassan
May 29 at 5:44




sudo sed -i '/mlocate/d' /var/lib/dpkg/statoverride fixed my issue. Thanks all !
– Raja Hassan
May 29 at 5:44












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041111%2fapache2-installation-error%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491