How to solve package issues/dependencies
proj
has to be installed as libproj0
. You also need to install libgdal-dev
package.
sudo apt-get install build-essential gcc g++ bison flex perl tcl-dev tk-dev blt libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-1.0-0 openmpi-bin libopenmpi-dev libpcap-dev autoconf automake libproj0 libgdal1-dev libfox-1.6-dev libgdal-dev libxerces-c-dev
Related videos on Youtube
Kristof Tak
Updated on September 18, 2022Comments
-
Kristof Tak over 1 year
Background info
I am trying to install Veins simulation environment by following the tutorial provided by the author.
In step 1 it is required to install some packages in Linux, the tutorial suggest this commands to be executed on Terminal:
sudo apt-get install build-essential gcc g++ bison flex perl tcl-dev tk-dev blt libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-1.0-0 openmpi-bin libopenmpi-dev libpcap-dev autoconf automake libtool libxerces-c2-dev proj libgdal1-dev libfox-1.6-dev
When I execute this command, I immediately get:
E: Package 'proj' has no installation candidate
Then I remove the
proj
from the command and execute it again withoutproj
in it, next I get:The following packages have unmet dependencies: libgdal1-dev : Depends: libgdal-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.
So, I remove
libgdal1-dev
from the command as well. And it executes file, by downloading the remaining packages.To troubleshoot the problem with
proj
andlibdgal1-dev
I go to theSynaptic Package Manager
.libgdal1-dev
I search for
libgdal1-dev
inSynaptic Package Manager
and I get an entry. IMark for Installation
and thenSynaptic Package Manager
suggests removinglibxerces-c2-dev
which is actually added via the initial command. Should I trustSynaptic Package Manager
with this suggestion, and proceed further?proj
What should I do about
proj
. There are some packages inSynaptic Package Manager
such asproj-bin
orlibproj-dev
. Should I install them? I thinkproj
has to do with this and thisWhat should I do to make sure that this simulation tool works fine?
-
Kristof Tak almost 10 yearsdo I need to re-compile the software after installing new packages?
-
Kristof Tak almost 10 yearsexecuting your command, returns
The following packages have unmet dependencies: libgdal-dev : Depends: libxerces-c-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.
-
Admin almost 10 yearsadd
libxerces-c-dev
also to the list. I edited the answer. -
Kristof Tak almost 10 yearsafter the last update to the command the Terminal returns:
The following packages have unmet dependencies: libxerces-c-dev : Conflicts: libxerces-c2-dev but 2.8.0+deb1-3build1 is to be installed libxerces-c2-dev : Conflicts: libxerces-c3-dev E: Unable to correct problems, you have held broken packages.
-
Admin almost 10 yearsremove
libxerces-c2-dev
package.