Can't install apache2 after uninstall [closed]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
Long story short, I had to move a running bugzilla version from Windows into Ubuntu. I had the a fresh installation of bugzilla running yesterday, but when I tried to bring the data in, the css and scripts where not displaying the site correctly. I tried setting the owner and user of the files and directories, I found that apache was having rights issues. I tried getting help from bugzilla, but no one replied with the correct fix. I thought that if I remove apache and install it back, it would fix the security problems. Well, was I wrong...!
I have tried a good 4-5 times to,
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove
whereis apache2
and then used
sudo rm -rf /etc/apache2
on any directory that resulted from the whereis
command. Now, I can not install apache2 on the system. Here is my last install try:
$ apt-get install --only-upgrade apache 2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.5).
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
$ sudo service apache2 restart
returns nothing.
software-installation apache2
closed as off-topic by user535733, Zanna, Rinzwind, Elder Geek, George Udosen Feb 24 at 17:24
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." â user535733, Zanna, Rinzwind, Elder Geek, George Udosen
 |Â
show 13 more comments
up vote
0
down vote
favorite
Long story short, I had to move a running bugzilla version from Windows into Ubuntu. I had the a fresh installation of bugzilla running yesterday, but when I tried to bring the data in, the css and scripts where not displaying the site correctly. I tried setting the owner and user of the files and directories, I found that apache was having rights issues. I tried getting help from bugzilla, but no one replied with the correct fix. I thought that if I remove apache and install it back, it would fix the security problems. Well, was I wrong...!
I have tried a good 4-5 times to,
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove
whereis apache2
and then used
sudo rm -rf /etc/apache2
on any directory that resulted from the whereis
command. Now, I can not install apache2 on the system. Here is my last install try:
$ apt-get install --only-upgrade apache 2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.5).
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
$ sudo service apache2 restart
returns nothing.
software-installation apache2
closed as off-topic by user535733, Zanna, Rinzwind, Elder Geek, George Udosen Feb 24 at 17:24
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." â user535733, Zanna, Rinzwind, Elder Geek, George Udosen
Please edit your question to include the complete output ofsudo apt update
andsudo apt upgrade
â user535733
Feb 21 at 23:06
Well, is doing a lot of upgrade... give me a sec.. Also, it's a log of data, how can I paste here where I can only paste 500 characters or so?
â jicman
Feb 21 at 23:15
Use paste.ubuntu.com
â user535733
Feb 21 at 23:17
Here is the update, link
â jicman
Feb 21 at 23:20
sorry, reversed... here is the update link the other one was the upgrade. Apologies...
â jicman
Feb 21 at 23:25
 |Â
show 13 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Long story short, I had to move a running bugzilla version from Windows into Ubuntu. I had the a fresh installation of bugzilla running yesterday, but when I tried to bring the data in, the css and scripts where not displaying the site correctly. I tried setting the owner and user of the files and directories, I found that apache was having rights issues. I tried getting help from bugzilla, but no one replied with the correct fix. I thought that if I remove apache and install it back, it would fix the security problems. Well, was I wrong...!
I have tried a good 4-5 times to,
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove
whereis apache2
and then used
sudo rm -rf /etc/apache2
on any directory that resulted from the whereis
command. Now, I can not install apache2 on the system. Here is my last install try:
$ apt-get install --only-upgrade apache 2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.5).
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
$ sudo service apache2 restart
returns nothing.
software-installation apache2
Long story short, I had to move a running bugzilla version from Windows into Ubuntu. I had the a fresh installation of bugzilla running yesterday, but when I tried to bring the data in, the css and scripts where not displaying the site correctly. I tried setting the owner and user of the files and directories, I found that apache was having rights issues. I tried getting help from bugzilla, but no one replied with the correct fix. I thought that if I remove apache and install it back, it would fix the security problems. Well, was I wrong...!
I have tried a good 4-5 times to,
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove
whereis apache2
and then used
sudo rm -rf /etc/apache2
on any directory that resulted from the whereis
command. Now, I can not install apache2 on the system. Here is my last install try:
$ apt-get install --only-upgrade apache 2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.5).
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
$ sudo service apache2 restart
returns nothing.
software-installation apache2
software-installation apache2
edited Feb 22 at 23:57
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
David Foerster
26.4k1362106
26.4k1362106
asked Feb 21 at 22:56
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
jicman
2618
2618
closed as off-topic by user535733, Zanna, Rinzwind, Elder Geek, George Udosen Feb 24 at 17:24
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." â user535733, Zanna, Rinzwind, Elder Geek, George Udosen
closed as off-topic by user535733, Zanna, Rinzwind, Elder Geek, George Udosen Feb 24 at 17:24
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." â user535733, Zanna, Rinzwind, Elder Geek, George Udosen
Please edit your question to include the complete output ofsudo apt update
andsudo apt upgrade
â user535733
Feb 21 at 23:06
Well, is doing a lot of upgrade... give me a sec.. Also, it's a log of data, how can I paste here where I can only paste 500 characters or so?
â jicman
Feb 21 at 23:15
Use paste.ubuntu.com
â user535733
Feb 21 at 23:17
Here is the update, link
â jicman
Feb 21 at 23:20
sorry, reversed... here is the update link the other one was the upgrade. Apologies...
â jicman
Feb 21 at 23:25
 |Â
show 13 more comments
Please edit your question to include the complete output ofsudo apt update
andsudo apt upgrade
â user535733
Feb 21 at 23:06
Well, is doing a lot of upgrade... give me a sec.. Also, it's a log of data, how can I paste here where I can only paste 500 characters or so?
â jicman
Feb 21 at 23:15
Use paste.ubuntu.com
â user535733
Feb 21 at 23:17
Here is the update, link
â jicman
Feb 21 at 23:20
sorry, reversed... here is the update link the other one was the upgrade. Apologies...
â jicman
Feb 21 at 23:25
Please edit your question to include the complete output of
sudo apt update
and sudo apt upgrade
â user535733
Feb 21 at 23:06
Please edit your question to include the complete output of
sudo apt update
and sudo apt upgrade
â user535733
Feb 21 at 23:06
Well, is doing a lot of upgrade... give me a sec.. Also, it's a log of data, how can I paste here where I can only paste 500 characters or so?
â jicman
Feb 21 at 23:15
Well, is doing a lot of upgrade... give me a sec.. Also, it's a log of data, how can I paste here where I can only paste 500 characters or so?
â jicman
Feb 21 at 23:15
Use paste.ubuntu.com
â user535733
Feb 21 at 23:17
Use paste.ubuntu.com
â user535733
Feb 21 at 23:17
Here is the update, link
â jicman
Feb 21 at 23:20
Here is the update, link
â jicman
Feb 21 at 23:20
sorry, reversed... here is the update link the other one was the upgrade. Apologies...
â jicman
Feb 21 at 23:25
sorry, reversed... here is the update link the other one was the upgrade. Apologies...
â jicman
Feb 21 at 23:25
 |Â
show 13 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
This is what I did to fix the problem:
apt-get remove apache2*
then followed by
apt-get install apache2
Can be done in one step:dpkg-query -Wf '$Status;1 $Packagen' 'apache2*' | sed -ne 's/^i //p' | xargs sudo apt-get install --reinstall
â David Foerster
Feb 23 at 0:02
By the time I type that, those two commands above would have been completed. :-)
â jicman
Feb 23 at 20:19
Fair enough....
â David Foerster
Feb 24 at 1:28
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
This is what I did to fix the problem:
apt-get remove apache2*
then followed by
apt-get install apache2
Can be done in one step:dpkg-query -Wf '$Status;1 $Packagen' 'apache2*' | sed -ne 's/^i //p' | xargs sudo apt-get install --reinstall
â David Foerster
Feb 23 at 0:02
By the time I type that, those two commands above would have been completed. :-)
â jicman
Feb 23 at 20:19
Fair enough....
â David Foerster
Feb 24 at 1:28
add a comment |Â
up vote
1
down vote
This is what I did to fix the problem:
apt-get remove apache2*
then followed by
apt-get install apache2
Can be done in one step:dpkg-query -Wf '$Status;1 $Packagen' 'apache2*' | sed -ne 's/^i //p' | xargs sudo apt-get install --reinstall
â David Foerster
Feb 23 at 0:02
By the time I type that, those two commands above would have been completed. :-)
â jicman
Feb 23 at 20:19
Fair enough....
â David Foerster
Feb 24 at 1:28
add a comment |Â
up vote
1
down vote
up vote
1
down vote
This is what I did to fix the problem:
apt-get remove apache2*
then followed by
apt-get install apache2
This is what I did to fix the problem:
apt-get remove apache2*
then followed by
apt-get install apache2
answered Feb 22 at 4:48
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
jicman
2618
2618
Can be done in one step:dpkg-query -Wf '$Status;1 $Packagen' 'apache2*' | sed -ne 's/^i //p' | xargs sudo apt-get install --reinstall
â David Foerster
Feb 23 at 0:02
By the time I type that, those two commands above would have been completed. :-)
â jicman
Feb 23 at 20:19
Fair enough....
â David Foerster
Feb 24 at 1:28
add a comment |Â
Can be done in one step:dpkg-query -Wf '$Status;1 $Packagen' 'apache2*' | sed -ne 's/^i //p' | xargs sudo apt-get install --reinstall
â David Foerster
Feb 23 at 0:02
By the time I type that, those two commands above would have been completed. :-)
â jicman
Feb 23 at 20:19
Fair enough....
â David Foerster
Feb 24 at 1:28
Can be done in one step:
dpkg-query -Wf '$Status;1 $Packagen' 'apache2*' | sed -ne 's/^i //p' | xargs sudo apt-get install --reinstall
â David Foerster
Feb 23 at 0:02
Can be done in one step:
dpkg-query -Wf '$Status;1 $Packagen' 'apache2*' | sed -ne 's/^i //p' | xargs sudo apt-get install --reinstall
â David Foerster
Feb 23 at 0:02
By the time I type that, those two commands above would have been completed. :-)
â jicman
Feb 23 at 20:19
By the time I type that, those two commands above would have been completed. :-)
â jicman
Feb 23 at 20:19
Fair enough....
â David Foerster
Feb 24 at 1:28
Fair enough....
â David Foerster
Feb 24 at 1:28
add a comment |Â
Please edit your question to include the complete output of
sudo apt update
andsudo apt upgrade
â user535733
Feb 21 at 23:06
Well, is doing a lot of upgrade... give me a sec.. Also, it's a log of data, how can I paste here where I can only paste 500 characters or so?
â jicman
Feb 21 at 23:15
Use paste.ubuntu.com
â user535733
Feb 21 at 23:17
Here is the update, link
â jicman
Feb 21 at 23:20
sorry, reversed... here is the update link the other one was the upgrade. Apologies...
â jicman
Feb 21 at 23:25