I have an ubuntu server (16.04) that I am supposed to deploy a python-flask website to. However I was having some difficulty with the virtual environment, and read here to remove packages manually in the dist-packages folder which was not in my virtual environment.
This resulted in me removing pip and not being able to use it in my virtual environment as well.
So then I read here that I should run the command;
sudo apt-get install ubuntu-desktop^
So I did and its still running 10 minuted later. But am now getting confused, as I have an ubuntu server not ubuntu-desktop, will this restore the appropriate files correctly? If not, should I cancel this command I run, as it is still running now.
Update:
This is my activity log file for today's events. I am not sure what else to remove I have already run apt remove ubuntu-desktop
;
Start-Date: 2017-03-28 06:07:33
Commandline: /usr/bin/unattended-upgrade
Install: linux-headers-4.4.0-70-generic:amd64 (4.4.0-70.91, automatic), linux-cloud-tools-4.4.0-70:amd64 (4.4.0-70.91, automatic), linux-cloud-tools-4.4.0-70-generic:amd64 (4.4.0-70.91, automatic), linux-headers-4.4.0-70:amd64 (4.4.0-70.91, automatic), linux-image-4.4.0-70-generic:amd64 (4.4.0-70.91, automatic), linux-image-extra-4.4.0-70-generic:amd64 (4.4.0-70.91, automatic)
Upgrade: linux-headers-generic:amd64 (4.4.0.66.70, 4.4.0.70.76), linux-libc-dev:amd64 (4.4.0-67.88, 4.4.0-70.91), linux-image-generic:amd64 (4.4.0.66.70, 4.4.0.70.76), linux-cloud-tools-common:amd64 (4.4.0-67.88, 4.4.0-70.91), linux-virtual:amd64 (4.4.0.66.70, 4.4.0.70.76), eject:amd64 (2.1.5+deb1+cvs20081104-13.1, 2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1), linux-headers-virtual:amd64 (4.4.0.66.70, 4.4.0.70.76), linux-cloud-tools-virtual:amd64 (4.4.0.67.72, 4.4.0.70.76), linux-image-extra-virtual:amd64 (4.4.0.66.70, 4.4.0.70.76), linux-image-virtual:amd64 (4.4.0.66.70, 4.4.0.70.76)
End-Date: 2017-03-28 06:15:21
Start-Date: 2017-03-28 06:15:37
Commandline: /usr/bin/unattended-upgrade
Remove: linux-cloud-tools-4.4.0-67-generic:amd64 (4.4.0-67.88), linux-cloud-tools-4.4.0-67:amd64 (4.4.0-67.88)
End-Date: 2017-03-28 06:15:44
Start-Date: 2017-03-28 10:40:36
Commandline: apt-get install ubuntu-desktop^
Requested-By: Fonzi (1000)
ubuntu-desktop
and if possible, cancel that install. The point of an Ubuntu Server install is that it runs without a desktop and all the graphic stuff that comes with it. I don't know how accidentally removingpip
would be remedied by installing ubuntu-desktop, instead of simply installing pip. – Jos Mar 28 '17 at 11:13sudo apt-get update
I get the error;dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Am I safe to run this command? – mp252 Mar 28 '17 at 11:41ubuntu-desktop
. Better doapt remove ubuntu-desktop
first, then look in/var/log/apt/history.log
to see what packages were going to be installed, thenapt remove
these as well. Then dodpkg --configure -a
. – Jos Mar 28 '17 at 11:45dpkg
came up. – mp252 Mar 28 '17 at 11:49dpkg --configure -a
. It's generally safe, though. – Jos Mar 28 '17 at 11:51dpkg --configure -a
worked fine then I runapt remove ubuntu-desktop
but now stuck on what to remove. I have listed my log file up above. Is there anything particular I need to remove. – mp252 Mar 28 '17 at 13:00