Error remove a package which is not installed
![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
I always get a notification that: Ubuntu faced an internal error. After checking it turn out there is a package not fully installed or removed libapache2-mod-wsgi-py3
.
When I run: sudo apt-get upgrade
I get:
dpkg: error processing package libapache2-mod-wsgi-py3 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-wsgi-py3
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to use sudo apt autoremove
. But did not fully remove it
I also did: sudo dpkg --remove libapache-mod-wsgi-py3
When I try to remove the package I get this:
dpkg: warning: ignoring request to remove libapache-mod-wsgi-py3 which isn't installed
But still having the same error. How to fix this??
16.04 apt package-management apache2 dpkg
 |Â
show 2 more comments
up vote
0
down vote
favorite
I always get a notification that: Ubuntu faced an internal error. After checking it turn out there is a package not fully installed or removed libapache2-mod-wsgi-py3
.
When I run: sudo apt-get upgrade
I get:
dpkg: error processing package libapache2-mod-wsgi-py3 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-wsgi-py3
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to use sudo apt autoremove
. But did not fully remove it
I also did: sudo dpkg --remove libapache-mod-wsgi-py3
When I try to remove the package I get this:
dpkg: warning: ignoring request to remove libapache-mod-wsgi-py3 which isn't installed
But still having the same error. How to fix this??
16.04 apt package-management apache2 dpkg
Also to my knowledge remove and autoremove do not fully get rid of all files associated w a package..there are multiple locations where related files are stored when you install a package
â Emily
Apr 26 at 16:09
What version(s) of python do you have
â Emily
Apr 26 at 16:11
Thanks @Emily ! Then how to remove all the nested dependencies related to this package? I have Python2.7
,3.5
, and '3.6'
â SineCo
Apr 26 at 17:43
My guess is that there was a conflict with this package and the version of python it was compiled against. What's the output ofwhich python
andps -fA | grep python
?
â Emily
Apr 26 at 18:34
Anyway, since you are having problems removing the package, first I would try using Synaptic to do it. That will take care of alerting you of subpackages that need to be removed as well. Then you could dosudo apt purge
(more thorough than remove). If you can't uninstall with synaptic or apt purge, it might be because apache is running and using (or trying to use?) the package...executesudo systemctl stop apache2.service
and then try again
â Emily
Apr 26 at 18:38
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I always get a notification that: Ubuntu faced an internal error. After checking it turn out there is a package not fully installed or removed libapache2-mod-wsgi-py3
.
When I run: sudo apt-get upgrade
I get:
dpkg: error processing package libapache2-mod-wsgi-py3 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-wsgi-py3
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to use sudo apt autoremove
. But did not fully remove it
I also did: sudo dpkg --remove libapache-mod-wsgi-py3
When I try to remove the package I get this:
dpkg: warning: ignoring request to remove libapache-mod-wsgi-py3 which isn't installed
But still having the same error. How to fix this??
16.04 apt package-management apache2 dpkg
I always get a notification that: Ubuntu faced an internal error. After checking it turn out there is a package not fully installed or removed libapache2-mod-wsgi-py3
.
When I run: sudo apt-get upgrade
I get:
dpkg: error processing package libapache2-mod-wsgi-py3 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-wsgi-py3
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to use sudo apt autoremove
. But did not fully remove it
I also did: sudo dpkg --remove libapache-mod-wsgi-py3
When I try to remove the package I get this:
dpkg: warning: ignoring request to remove libapache-mod-wsgi-py3 which isn't installed
But still having the same error. How to fix this??
16.04 apt package-management apache2 dpkg
edited Apr 26 at 19:56
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
Emily
612317
612317
asked Apr 26 at 15:54
SineCo
114
114
Also to my knowledge remove and autoremove do not fully get rid of all files associated w a package..there are multiple locations where related files are stored when you install a package
â Emily
Apr 26 at 16:09
What version(s) of python do you have
â Emily
Apr 26 at 16:11
Thanks @Emily ! Then how to remove all the nested dependencies related to this package? I have Python2.7
,3.5
, and '3.6'
â SineCo
Apr 26 at 17:43
My guess is that there was a conflict with this package and the version of python it was compiled against. What's the output ofwhich python
andps -fA | grep python
?
â Emily
Apr 26 at 18:34
Anyway, since you are having problems removing the package, first I would try using Synaptic to do it. That will take care of alerting you of subpackages that need to be removed as well. Then you could dosudo apt purge
(more thorough than remove). If you can't uninstall with synaptic or apt purge, it might be because apache is running and using (or trying to use?) the package...executesudo systemctl stop apache2.service
and then try again
â Emily
Apr 26 at 18:38
 |Â
show 2 more comments
Also to my knowledge remove and autoremove do not fully get rid of all files associated w a package..there are multiple locations where related files are stored when you install a package
â Emily
Apr 26 at 16:09
What version(s) of python do you have
â Emily
Apr 26 at 16:11
Thanks @Emily ! Then how to remove all the nested dependencies related to this package? I have Python2.7
,3.5
, and '3.6'
â SineCo
Apr 26 at 17:43
My guess is that there was a conflict with this package and the version of python it was compiled against. What's the output ofwhich python
andps -fA | grep python
?
â Emily
Apr 26 at 18:34
Anyway, since you are having problems removing the package, first I would try using Synaptic to do it. That will take care of alerting you of subpackages that need to be removed as well. Then you could dosudo apt purge
(more thorough than remove). If you can't uninstall with synaptic or apt purge, it might be because apache is running and using (or trying to use?) the package...executesudo systemctl stop apache2.service
and then try again
â Emily
Apr 26 at 18:38
Also to my knowledge remove and autoremove do not fully get rid of all files associated w a package..there are multiple locations where related files are stored when you install a package
â Emily
Apr 26 at 16:09
Also to my knowledge remove and autoremove do not fully get rid of all files associated w a package..there are multiple locations where related files are stored when you install a package
â Emily
Apr 26 at 16:09
What version(s) of python do you have
â Emily
Apr 26 at 16:11
What version(s) of python do you have
â Emily
Apr 26 at 16:11
Thanks @Emily ! Then how to remove all the nested dependencies related to this package? I have Python
2.7
, 3.5
, and '3.6'â SineCo
Apr 26 at 17:43
Thanks @Emily ! Then how to remove all the nested dependencies related to this package? I have Python
2.7
, 3.5
, and '3.6'â SineCo
Apr 26 at 17:43
My guess is that there was a conflict with this package and the version of python it was compiled against. What's the output of
which python
and ps -fA | grep python
?â Emily
Apr 26 at 18:34
My guess is that there was a conflict with this package and the version of python it was compiled against. What's the output of
which python
and ps -fA | grep python
?â Emily
Apr 26 at 18:34
Anyway, since you are having problems removing the package, first I would try using Synaptic to do it. That will take care of alerting you of subpackages that need to be removed as well. Then you could do
sudo apt purge
(more thorough than remove). If you can't uninstall with synaptic or apt purge, it might be because apache is running and using (or trying to use?) the package...execute sudo systemctl stop apache2.service
and then try againâ Emily
Apr 26 at 18:38
Anyway, since you are having problems removing the package, first I would try using Synaptic to do it. That will take care of alerting you of subpackages that need to be removed as well. Then you could do
sudo apt purge
(more thorough than remove). If you can't uninstall with synaptic or apt purge, it might be because apache is running and using (or trying to use?) the package...execute sudo systemctl stop apache2.service
and then try againâ Emily
Apr 26 at 18:38
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Step 1: Stop apache2 service from running
Before uninstalling enter this command into Terminal/other CLI:
sudo systemctl stop apache2.service
Step 2: Remove package binaries, system-wide configuration files, and orphaned dependencies
To completely remove the package itself, along with its system-wide configuration files and any dependencies that were required by the package but no longer needed, execute:
sudo apt-get purge --auto-remove <packagename>
Explanation: purge
does the same thing as apt-get remove --purge
; it gets rid of the package itself and associated configuration files. It's like one step above apt-get remove
, which only deletes the binaries. --auto-remove
does the same thing as apt-get autoremove
; it gets rid of orphaned dependencies.
Sorry I didn't give you that specific command to use in the comments, but it's perfectly fine to do everything using separate commands rather than one single command, since the same actions are performed. In your specific case, since you've already done remove --purge
, you can just execute the autoremove part now with sudo apt autoremove
and that should take care of the stuff that remove --purge didn't delete. The single-entry way is just a bit faster.
Alternatively, if you want to be selective about what dependencies get removed, you can get rid of the --auto-remove
flag (executing sudo apt-get purge <packagename>
) and follow the steps I found from this amazing answer to easily create a sort of custom dependency-uninstaller. The following command first lists all package dependencies, then pipes that list into individual apt-get remove
commands, which all gets sent to a shell script that you can open in a text editor and modify as needed. Then you just execute the shell script once you're happy with it. The command is:
apt-cache depends <packagename>|awk 'print "sudo apt-get remove "$NF' >pg_remove.sh
The pg_remove.sh file is saved to your home directory (obviously you can add a path before the output file name if you want to save it somewhere else). To run the script execute bash pg_remove.sh
(again if your output file is not in your home directory, modify this command to include the path to its location).
Step 3: Remove user configuration files
Next you have to manually remove user-specific configuration files stored in your home directory. These may be in their own directory, and/or in ~/.config, ~/.cache, ~/.local.
First look for files that contain the package name in ~/.config
and remove them. You can use ls -a ~/.config
or ls -A ~/.config
to see all the contents of your home, including hidden files/folders. If you're using Nautilus to do this, make sure you have enabled the option to view hidden files (View>Show Hidden Files
). Then delete them using rm or Nautilus.
Also look in your home folder for a directory with the package name (or something that looks like the package name--it may not be exactly the same). It will probably be hidden by default, and it will probably begin with a "."--if it exists. I don't know that much about apache so I'm not sure if this directory will be there, or what it would look like. Anyway, if it exists, remove it also!
Additionally, check in ~/.cache
and ~/.local/share
for a directory named after the package.
References for Steps 2 and 3: How can you completely remove a package?, What is the correct way to completely remove an application?, How to remove configuration files completely
Possible future reinstallation
This package may have libraries you you actually need in the future and you may need to reinstall it. Ubuntu comes with libapache2-mod-wsgi-py3 installed, which is like a default version, so my guess is that it couldn't play nicely with whatever Python version you were using. If you want to know more check the output of which python
and ps -fA | grep python
...If a conflict with the Python version was indeed the problem, then this question and this one address how you can properly install mod-wgsi via pip (the package pip installs is something called mod_wgsi).
@SineCo, awesome! You're welcome!
â Emily
Apr 26 at 20:42
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Step 1: Stop apache2 service from running
Before uninstalling enter this command into Terminal/other CLI:
sudo systemctl stop apache2.service
Step 2: Remove package binaries, system-wide configuration files, and orphaned dependencies
To completely remove the package itself, along with its system-wide configuration files and any dependencies that were required by the package but no longer needed, execute:
sudo apt-get purge --auto-remove <packagename>
Explanation: purge
does the same thing as apt-get remove --purge
; it gets rid of the package itself and associated configuration files. It's like one step above apt-get remove
, which only deletes the binaries. --auto-remove
does the same thing as apt-get autoremove
; it gets rid of orphaned dependencies.
Sorry I didn't give you that specific command to use in the comments, but it's perfectly fine to do everything using separate commands rather than one single command, since the same actions are performed. In your specific case, since you've already done remove --purge
, you can just execute the autoremove part now with sudo apt autoremove
and that should take care of the stuff that remove --purge didn't delete. The single-entry way is just a bit faster.
Alternatively, if you want to be selective about what dependencies get removed, you can get rid of the --auto-remove
flag (executing sudo apt-get purge <packagename>
) and follow the steps I found from this amazing answer to easily create a sort of custom dependency-uninstaller. The following command first lists all package dependencies, then pipes that list into individual apt-get remove
commands, which all gets sent to a shell script that you can open in a text editor and modify as needed. Then you just execute the shell script once you're happy with it. The command is:
apt-cache depends <packagename>|awk 'print "sudo apt-get remove "$NF' >pg_remove.sh
The pg_remove.sh file is saved to your home directory (obviously you can add a path before the output file name if you want to save it somewhere else). To run the script execute bash pg_remove.sh
(again if your output file is not in your home directory, modify this command to include the path to its location).
Step 3: Remove user configuration files
Next you have to manually remove user-specific configuration files stored in your home directory. These may be in their own directory, and/or in ~/.config, ~/.cache, ~/.local.
First look for files that contain the package name in ~/.config
and remove them. You can use ls -a ~/.config
or ls -A ~/.config
to see all the contents of your home, including hidden files/folders. If you're using Nautilus to do this, make sure you have enabled the option to view hidden files (View>Show Hidden Files
). Then delete them using rm or Nautilus.
Also look in your home folder for a directory with the package name (or something that looks like the package name--it may not be exactly the same). It will probably be hidden by default, and it will probably begin with a "."--if it exists. I don't know that much about apache so I'm not sure if this directory will be there, or what it would look like. Anyway, if it exists, remove it also!
Additionally, check in ~/.cache
and ~/.local/share
for a directory named after the package.
References for Steps 2 and 3: How can you completely remove a package?, What is the correct way to completely remove an application?, How to remove configuration files completely
Possible future reinstallation
This package may have libraries you you actually need in the future and you may need to reinstall it. Ubuntu comes with libapache2-mod-wsgi-py3 installed, which is like a default version, so my guess is that it couldn't play nicely with whatever Python version you were using. If you want to know more check the output of which python
and ps -fA | grep python
...If a conflict with the Python version was indeed the problem, then this question and this one address how you can properly install mod-wgsi via pip (the package pip installs is something called mod_wgsi).
@SineCo, awesome! You're welcome!
â Emily
Apr 26 at 20:42
add a comment |Â
up vote
0
down vote
accepted
Step 1: Stop apache2 service from running
Before uninstalling enter this command into Terminal/other CLI:
sudo systemctl stop apache2.service
Step 2: Remove package binaries, system-wide configuration files, and orphaned dependencies
To completely remove the package itself, along with its system-wide configuration files and any dependencies that were required by the package but no longer needed, execute:
sudo apt-get purge --auto-remove <packagename>
Explanation: purge
does the same thing as apt-get remove --purge
; it gets rid of the package itself and associated configuration files. It's like one step above apt-get remove
, which only deletes the binaries. --auto-remove
does the same thing as apt-get autoremove
; it gets rid of orphaned dependencies.
Sorry I didn't give you that specific command to use in the comments, but it's perfectly fine to do everything using separate commands rather than one single command, since the same actions are performed. In your specific case, since you've already done remove --purge
, you can just execute the autoremove part now with sudo apt autoremove
and that should take care of the stuff that remove --purge didn't delete. The single-entry way is just a bit faster.
Alternatively, if you want to be selective about what dependencies get removed, you can get rid of the --auto-remove
flag (executing sudo apt-get purge <packagename>
) and follow the steps I found from this amazing answer to easily create a sort of custom dependency-uninstaller. The following command first lists all package dependencies, then pipes that list into individual apt-get remove
commands, which all gets sent to a shell script that you can open in a text editor and modify as needed. Then you just execute the shell script once you're happy with it. The command is:
apt-cache depends <packagename>|awk 'print "sudo apt-get remove "$NF' >pg_remove.sh
The pg_remove.sh file is saved to your home directory (obviously you can add a path before the output file name if you want to save it somewhere else). To run the script execute bash pg_remove.sh
(again if your output file is not in your home directory, modify this command to include the path to its location).
Step 3: Remove user configuration files
Next you have to manually remove user-specific configuration files stored in your home directory. These may be in their own directory, and/or in ~/.config, ~/.cache, ~/.local.
First look for files that contain the package name in ~/.config
and remove them. You can use ls -a ~/.config
or ls -A ~/.config
to see all the contents of your home, including hidden files/folders. If you're using Nautilus to do this, make sure you have enabled the option to view hidden files (View>Show Hidden Files
). Then delete them using rm or Nautilus.
Also look in your home folder for a directory with the package name (or something that looks like the package name--it may not be exactly the same). It will probably be hidden by default, and it will probably begin with a "."--if it exists. I don't know that much about apache so I'm not sure if this directory will be there, or what it would look like. Anyway, if it exists, remove it also!
Additionally, check in ~/.cache
and ~/.local/share
for a directory named after the package.
References for Steps 2 and 3: How can you completely remove a package?, What is the correct way to completely remove an application?, How to remove configuration files completely
Possible future reinstallation
This package may have libraries you you actually need in the future and you may need to reinstall it. Ubuntu comes with libapache2-mod-wsgi-py3 installed, which is like a default version, so my guess is that it couldn't play nicely with whatever Python version you were using. If you want to know more check the output of which python
and ps -fA | grep python
...If a conflict with the Python version was indeed the problem, then this question and this one address how you can properly install mod-wgsi via pip (the package pip installs is something called mod_wgsi).
@SineCo, awesome! You're welcome!
â Emily
Apr 26 at 20:42
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Step 1: Stop apache2 service from running
Before uninstalling enter this command into Terminal/other CLI:
sudo systemctl stop apache2.service
Step 2: Remove package binaries, system-wide configuration files, and orphaned dependencies
To completely remove the package itself, along with its system-wide configuration files and any dependencies that were required by the package but no longer needed, execute:
sudo apt-get purge --auto-remove <packagename>
Explanation: purge
does the same thing as apt-get remove --purge
; it gets rid of the package itself and associated configuration files. It's like one step above apt-get remove
, which only deletes the binaries. --auto-remove
does the same thing as apt-get autoremove
; it gets rid of orphaned dependencies.
Sorry I didn't give you that specific command to use in the comments, but it's perfectly fine to do everything using separate commands rather than one single command, since the same actions are performed. In your specific case, since you've already done remove --purge
, you can just execute the autoremove part now with sudo apt autoremove
and that should take care of the stuff that remove --purge didn't delete. The single-entry way is just a bit faster.
Alternatively, if you want to be selective about what dependencies get removed, you can get rid of the --auto-remove
flag (executing sudo apt-get purge <packagename>
) and follow the steps I found from this amazing answer to easily create a sort of custom dependency-uninstaller. The following command first lists all package dependencies, then pipes that list into individual apt-get remove
commands, which all gets sent to a shell script that you can open in a text editor and modify as needed. Then you just execute the shell script once you're happy with it. The command is:
apt-cache depends <packagename>|awk 'print "sudo apt-get remove "$NF' >pg_remove.sh
The pg_remove.sh file is saved to your home directory (obviously you can add a path before the output file name if you want to save it somewhere else). To run the script execute bash pg_remove.sh
(again if your output file is not in your home directory, modify this command to include the path to its location).
Step 3: Remove user configuration files
Next you have to manually remove user-specific configuration files stored in your home directory. These may be in their own directory, and/or in ~/.config, ~/.cache, ~/.local.
First look for files that contain the package name in ~/.config
and remove them. You can use ls -a ~/.config
or ls -A ~/.config
to see all the contents of your home, including hidden files/folders. If you're using Nautilus to do this, make sure you have enabled the option to view hidden files (View>Show Hidden Files
). Then delete them using rm or Nautilus.
Also look in your home folder for a directory with the package name (or something that looks like the package name--it may not be exactly the same). It will probably be hidden by default, and it will probably begin with a "."--if it exists. I don't know that much about apache so I'm not sure if this directory will be there, or what it would look like. Anyway, if it exists, remove it also!
Additionally, check in ~/.cache
and ~/.local/share
for a directory named after the package.
References for Steps 2 and 3: How can you completely remove a package?, What is the correct way to completely remove an application?, How to remove configuration files completely
Possible future reinstallation
This package may have libraries you you actually need in the future and you may need to reinstall it. Ubuntu comes with libapache2-mod-wsgi-py3 installed, which is like a default version, so my guess is that it couldn't play nicely with whatever Python version you were using. If you want to know more check the output of which python
and ps -fA | grep python
...If a conflict with the Python version was indeed the problem, then this question and this one address how you can properly install mod-wgsi via pip (the package pip installs is something called mod_wgsi).
Step 1: Stop apache2 service from running
Before uninstalling enter this command into Terminal/other CLI:
sudo systemctl stop apache2.service
Step 2: Remove package binaries, system-wide configuration files, and orphaned dependencies
To completely remove the package itself, along with its system-wide configuration files and any dependencies that were required by the package but no longer needed, execute:
sudo apt-get purge --auto-remove <packagename>
Explanation: purge
does the same thing as apt-get remove --purge
; it gets rid of the package itself and associated configuration files. It's like one step above apt-get remove
, which only deletes the binaries. --auto-remove
does the same thing as apt-get autoremove
; it gets rid of orphaned dependencies.
Sorry I didn't give you that specific command to use in the comments, but it's perfectly fine to do everything using separate commands rather than one single command, since the same actions are performed. In your specific case, since you've already done remove --purge
, you can just execute the autoremove part now with sudo apt autoremove
and that should take care of the stuff that remove --purge didn't delete. The single-entry way is just a bit faster.
Alternatively, if you want to be selective about what dependencies get removed, you can get rid of the --auto-remove
flag (executing sudo apt-get purge <packagename>
) and follow the steps I found from this amazing answer to easily create a sort of custom dependency-uninstaller. The following command first lists all package dependencies, then pipes that list into individual apt-get remove
commands, which all gets sent to a shell script that you can open in a text editor and modify as needed. Then you just execute the shell script once you're happy with it. The command is:
apt-cache depends <packagename>|awk 'print "sudo apt-get remove "$NF' >pg_remove.sh
The pg_remove.sh file is saved to your home directory (obviously you can add a path before the output file name if you want to save it somewhere else). To run the script execute bash pg_remove.sh
(again if your output file is not in your home directory, modify this command to include the path to its location).
Step 3: Remove user configuration files
Next you have to manually remove user-specific configuration files stored in your home directory. These may be in their own directory, and/or in ~/.config, ~/.cache, ~/.local.
First look for files that contain the package name in ~/.config
and remove them. You can use ls -a ~/.config
or ls -A ~/.config
to see all the contents of your home, including hidden files/folders. If you're using Nautilus to do this, make sure you have enabled the option to view hidden files (View>Show Hidden Files
). Then delete them using rm or Nautilus.
Also look in your home folder for a directory with the package name (or something that looks like the package name--it may not be exactly the same). It will probably be hidden by default, and it will probably begin with a "."--if it exists. I don't know that much about apache so I'm not sure if this directory will be there, or what it would look like. Anyway, if it exists, remove it also!
Additionally, check in ~/.cache
and ~/.local/share
for a directory named after the package.
References for Steps 2 and 3: How can you completely remove a package?, What is the correct way to completely remove an application?, How to remove configuration files completely
Possible future reinstallation
This package may have libraries you you actually need in the future and you may need to reinstall it. Ubuntu comes with libapache2-mod-wsgi-py3 installed, which is like a default version, so my guess is that it couldn't play nicely with whatever Python version you were using. If you want to know more check the output of which python
and ps -fA | grep python
...If a conflict with the Python version was indeed the problem, then this question and this one address how you can properly install mod-wgsi via pip (the package pip installs is something called mod_wgsi).
edited May 4 at 20:03
answered Apr 26 at 19:21
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
Emily
612317
612317
@SineCo, awesome! You're welcome!
â Emily
Apr 26 at 20:42
add a comment |Â
@SineCo, awesome! You're welcome!
â Emily
Apr 26 at 20:42
@SineCo, awesome! You're welcome!
â Emily
Apr 26 at 20:42
@SineCo, awesome! You're welcome!
â Emily
Apr 26 at 20:42
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028464%2ferror-remove-a-package-which-is-not-installed%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Also to my knowledge remove and autoremove do not fully get rid of all files associated w a package..there are multiple locations where related files are stored when you install a package
â Emily
Apr 26 at 16:09
What version(s) of python do you have
â Emily
Apr 26 at 16:11
Thanks @Emily ! Then how to remove all the nested dependencies related to this package? I have Python
2.7
,3.5
, and '3.6'â SineCo
Apr 26 at 17:43
My guess is that there was a conflict with this package and the version of python it was compiled against. What's the output of
which python
andps -fA | grep python
?â Emily
Apr 26 at 18:34
Anyway, since you are having problems removing the package, first I would try using Synaptic to do it. That will take care of alerting you of subpackages that need to be removed as well. Then you could do
sudo apt purge
(more thorough than remove). If you can't uninstall with synaptic or apt purge, it might be because apache is running and using (or trying to use?) the package...executesudo systemctl stop apache2.service
and then try againâ Emily
Apr 26 at 18:38