Skip to main content

Uninstalling mysql from ubuntu 12.04 + higher


Using the steps below you can uninstall mysql from ubuntu,
Started with this
sudo apt-get remove --purge mysql-client mysql-server   


It gave errors- Error Displayed:


E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)
Delete the lock file 
sudo rm /var/lib/apt/lists/lock and sudo rm /var/cache/apt/archives/lock for cache
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock
And the same command can be used for the apt cache lock:
sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock

Comments

Popular posts from this blog

Cannot allocate memory error while computing files - Setup Swap space

ActionView::Template::Error (Cannot allocate memory - nodejs /tmp/execjs20131021-26716-fckzo3.js 2>&1 Nodejs is used to compile javascript at runtime. In RoR applications, this error comes when server is started in production mode which compiles the assets or while running rake assets:precompile . check for swap space and allocate

RubyConf 2013 at pune..retrieved from drafts

A great experience while interacting with the ruby community from different places. Lots of knowledge and inspiration flows. Met many folks from india and abroad.

Fresh server start after instance degraded

So the issue was, amazon issued an warning regarding the server to be terminated, before i could think of making an backup the instance stopped. The troubleshoot operations like reboot, stop and start didn't worked. Simple Steps to start a fresh instance with the previous content on server.