The option --install-recommends is not recognized by APT - linux

I'm trying to install wine on Ubuntu 16.04
but it gives me this error:
\E: Command line option --install-recommends is not understood in combination with the other options
could anyone tell me what to do to make this work?
the code is:
sudo apt-get --install-recommends winehq-devel

I think, you forgot the 'install' parameter.
What you wrote:
sudo apt-get --install-recommends winehq-devel
What you should've written (per apts syntax):
sudo apt-get install --install-recommends winehq-devel
Though I think apt still defaults to your wanted behavior.
So omitting the --install-recommends would've been fine:
sudo apt-get install winehq-devel

Related

Build-Essential: Command Not Found on WSL

I am currently trying to setup my Windows 10 Dev Box with WSL. I have successfully install Ubuntu (Ubuntu 16.04.3) on a Windows 10 Insider Preview Version 1803 (OS Build 17666.1000). Using this walkthru to setup a RoR Dev ENV. Getting Rails app to...
sudo apt-get update seems to run fine.
sudo apt-get install git-core curl zlib1g-dev seems to run fine except libfreetype6 is no longer required.
When I try to run a build-essential command it gives me this message: build-essential: command not found
I try to apt-get autoremove to see if the libfreetype6 is causing the issue, no dice. I try sudo apt-get install --reinstall build-essential and it installs, but as soon as I run another build-essential command, it's not found again. Am I missing something?
Any help or direction would be awesome. Thanks.
You're missing nothing. build-essential is a package, not a command.
If you do apt show build-essential, you will notice this line:
Depends: libc6-dev | libc-dev, gcc (>= 4:7.2), g++ (>= 4:7.2), make, dpkg-dev (>= 1.17.11)
So it's just a convenient package that installs a set of essential build tools.
Furthermore, if you do dpkg -L build-essential, you will find that it contains nothing in /usr/bin (or whatever binary directory).
you have to install build-essential. first update repo list and update your libs, then install it.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
It works for me in WSL, thanks Roberto

ubuntu 14.04 .1 package installation error

I am trying to run the following command:
sudo apt-add-repository ppa:cloud-installer/testing
but it is giving me the following error:
Cannot add PPA : 'ppa:cloud-installer/testing' Please check that the PPA name or format is correct.
any solutions?
See these answers, at AskUbuntu.
You will see:
sudo apt-get install --reinstall ca-certificates
And, if it does not work:
sudo -E add-apt-repository ppa:cloud-installer/testing
Or, as stated here, also in AskUbuntu:
sudo -E add-apt-repository ppa:cloud-installer/stable
or
sudo add-apt-repository ppa:openstack-ubuntu-testing/kilo

Ubuntu 16.04 error with apt-get

Yesterday I updated Ubuntu from 14.04 to 16.04, when I tried to install git, I got this error:
The package linux-headers-4.4.0-65 needs to be reinstalled, but I
can't find an archive for it.
Then I tried to install another software, to the same error.
First you need to
sudo apt-get update
Then
sudo apt-get install git
I had a similar problem on Kali-Linux once. The thing that worked for me was:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update && sudo apt-get dist-upgrade

mysql-server:Depends: mysql-server-5.5 but it is not going to be installed

I am using ubuntu 14.04 on VirtualBox. I try install mysql-server using command
sudo apt-get install mysql-server, i always got error like below:
Some packages could be installed .This may mean that you have
request an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following packages have unmet dependencies:
mysqsl-server : Depends: mysql-server-5.5 but it is not going to be installed
E:Unable to correct problems, you have held broken packages.
and then i try use some command like below :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get purge mysql-server*
sudo apt-get install mysql-server
but it still error. Please help me!
Have you tried using
sudo apt-get install -f
This can repair broken packages or purge the installation.
If mysql-server is not installed with -f , you can try to install with normal way
sudo apt-get install mysql-server -y

X11/Xlib.h not found in Ubuntu

I'm trying to write a rather trivial program using open gl on linux, but at a compile time it says:
Compile thumb : egl <= cuberenderer.c
In file included from
/path/include/egl.h:36,
from /path/cuberenderer.c:7:
/path/include/eglplatform.h:89:22:
error: X11/Xlib.h: No such file or
directory
/path/include/eglplatform.h:90:23:
error: X11/Xutil.h: No such file or
directory
I'm totally new to GL and have no idea what's wrong.
A quick search using...
apt search Xlib.h
Turns up the package libx11-dev but you shouldn't need this for pure OpenGL programming. What tutorial are you using?
You can add Xlib.h to your system by running the following...
sudo apt install libx11-dev
Presume he's using the tutorial from http://www.arcsynthesis.org/gltut/ along with premake4.3 :-)
sudo apt-get install libx11-dev ................. for X11/Xlib.h
sudo apt-get install mesa-common-dev........ for GL/glx.h
sudo apt-get install libglu1-mesa-dev ..... for GL/glu.h
sudo apt-get install libxrandr-dev ........... for X11/extensions/Xrandr.h
sudo apt-get install libxi-dev ................... for X11/extensions/XInput.h
After which I could build glsdk_0.4.4 and examples without further issue.
Why not try find /usr/include/X11 -name Xlib.h
If there is a hit, you have Xlib.h
If not install it using sudo apt-get install libx11-dev
and you are good to go :)

Resources