Comment 48 for bug 1016165

Revision history for this message
Mike Miller (akf-mike-nw2) wrote : Re: [Bug 1016165] Re: virtualbox-guest-dkms 4.1.16-dfsg-2: virtualbox-guest kernel module failed to build [error: implicit declaration of function ‘do_mmap’]

On 4/17/2013 11:55 AM, Rodolfo Roman wrote:
> I have workaround problem by downloading and installing Vbox from the
> DEB file instead of installing from the console. Version downloaded
> was "virtualbox-4.2_4.2.12-84980_Ubuntu_Precise_amd64.deb".
>
Ok, so can't you just go in to ubuntu software manager [if you installed
it which it runs fine on server after install] and go to History and
remove it there or could do a sudo apt-get [--purge] remove with purge
it removes all configs as well as the pack with no purge it remoes the
package, BUT leaves the config files in place.

apt-get --purge remove {package-name}

If not sure what the package is named try to search using apt-cache as
in the below examples. Once found then run apt-get --purge remove with
the package name [apt-cache uses package name ONLY [not the .deb part]]

Search for package or package description

Some times you don't know package name but aware of some keywords to
search the package. Once you got package name you can install it using
apt-get -i {package-name} command:

apt-cache search"Text-to-search"
apt-cache search"httpd"
apt-cache search"web server"
apt-cache search"web server"|grep something

Source:
http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html
[Gotta LOVE GOOGLE FOUND VIA SEARCH: apt-get remove locally installed
package]!