Can't install libpcre3-dev
I am trying to install libpcre3-dev
but it gives me the follwing error:
The following packages have unmet dependencies: libpcre3-dev : Depends: libpcre3 (= 2:8.38-3.1) but 2:8.39-1+deb.sury.org~trusty+1 is to be installed E: Unable to correct problems, you have held broken packages.
The 2:8.39-1+deb.sury.org~trusty+1
is from an 'old' ppa (ondrej), so I took a fresh and new Sources.list.
I had the same issue with php7.0-dev
and ended up uninstalling php7.0 and installing it from the official repos.
Now when I want to remove libpcre3
it wants to remove nearly all of my packages? Is there another way to "change" the libpcre3 package to the "official" one?
I also tried this, with no luck
Use
sudo apt-get install libpcre3=2:8.38-3.1 libpcre3-dev=2:8.38-3.1
to force apt-get
to install version 2:8.38-3.1 of those packages.
Warning: Only use this this if you are really sure you want to install version 2:8.38-3.1 (the version from the official Ubuntu 16.04 repository) of the packages libpcre3
and libpcre3-dev
.
If you are not running Ubuntu 16.04 you should change the version number to the version you actually want to install.