Im working on installing Autospy, and I need to install the java bindings for sleuthkit. As I am doing this, the instructions are to download the .deb file, and run this. I do this and it is telling me I am missing certain packages in the error below.
sleuthkit-java : Depends: libewf2 (>= 20121209) but it is not going to be installed
Depends: libvhdi1 (>= 20150110) but it is not going to be installed
Depends: libvmdk1 (>= 20150516) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
When I run sudo apt-get install libewf2, it will then install libewf2, however it will remove libewf-dev.
When I go to install the debian package again, I get the following error.
The following packages have unmet dependencies:
sleuthkit-java : Depends: libvhdi1 (>= 20150110) but it is not going to be installed
Depends: libvmdk1 (>= 20150516) but it is not going to be installed
Depends: libewf-dev (>= 20130416) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
My question is how do I install the java binding, if the dependencies keep uninstalling themselves when I install the other one.
Thanks in advance for any help.
Related
When I tried to remove python3.5 on ubuntu, it always reports error
sudo apt-get remove python3.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python3-commandnotfound : Depends: python3-gdbm but it is not going to be installed
python3-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu4) but it is not going to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
python3-software-properties : Depends: unattended-upgrades but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
In this case, I tried to reinstall the dependence, but finally, it always reports like
python3-commandnotfound : Depends: python3-gdbm but it is not going to be installed
python3-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu4) but it is not going to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
I also tried apt-get remove/reinstall/autoremove/update/upgrade, but it deosn't work. I can see the same error finally. The dependence file is not going to be installed.
It looks I'm in a dead loop. How can I remove everything manually?
I need to install an old version of VLC from the command line (can't use a browser to download anything). I know it sounds weird, but the specific version of VLC doesn't matter as long as it isn't the most up to date.
EDIT
Based on the suggestion below I tried downloading and installing the .deb file but when I ran "apt-get install -f" after installing it, VLC was automatically updated to the newest version.
I tried again and put a hold on VLC (sudo apt-mark hold vlc), but that caused "apt-get install" to fail:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
vlc : Depends: ttf-freefont
Depends: vlc-nox (= 1.1.9-1ubuntu1) but it is not installed
Depends: libavcodec52 (>= 4:0.6-1~) but it is not installable or
libavcodec-extra-52 (>= 4:0.6-1~) but it is not installable
Depends: libavutil50 (>= 4:0.6-1~) but it is not installable or
libavutil-extra-50 (>= 4:0.6-1~) but it is not installable
Depends: libgl1-mesa-glx but it is not installed or
libgl1
Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not installed
Depends: libqtgui4 (>= 4:4.5.3) but it is not installed
Depends: libsdl-image1.2 (>= 1.2.10) but it is not installed
Depends: libtar
Depends: libva-x11-1 but it is not installed
Depends: libva1 but it is not installed
Depends: libvlccore4 (>= 1.1.0) but it is not installable
Depends: libx11-xcb1 but it is not installed
Depends: libxcb-keysyms1 (>= 0.3.6) but it is not installed
Depends: libxcb-randr0 (>= 1.1) but it is not installed
Depends: libxcb-xv0 (>= 1.2) but it is not installed
Recommends: vlc-plugin-notify (= 1.1.9-1ubuntu1) but it is not installed
Recommends: vlc-plugin-pulse (= 1.1.9-1ubuntu1) but it is not installable
Recommends: xdg-utils but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
You can find the VLC 1.1.9 deb here:
32 bit - http://launchpadlibrarian.net/69370596/vlc_1.1.9-1ubuntu1_i386.deb
64 bit - http://launchpadlibrarian.net/69370658/vlc_1.1.9-1ubuntu1_amd64.deb
You should consider locking the vlc package to prevent it from getting updated accidentally again.
How to prevent updating of a specific package?
So I recently installed Ubuntu 14.04 as my primary operating system. I have toyed with Ubuntu for years but have never had these kinds of issues to this degree at least. What's happening is that my laptop (64 bit) is running the 64 bit version of Ubuntu. This seems to be causing a lot of dependency issues and its a miracle when something installs all the way through. I have been looking through the interwebs on a solution to this but to no avail. I thought I'd at least see if any of you knew it. Below is the output I have been receiving when trying to install simple software packages. And I just installed Ubuntu today too!
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gnupg2 : Depends: gnupg-agent (= 2.0.22-3ubuntu1.3)
Depends: libksba8 (>= 1.2.0) but it is not going to be installed
gpa : Depends: gpgsm
teamviewer:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed
Depends: libgcc1:i386 but it is not going to be installed
Depends: libasound2:i386
Depends: libdbus-1-3:i386 but it is not going to be installed
Depends: libexpat1:i386 but it is not going to be installed
Depends: libfontconfig1:i386 but it is not going to be installed
Depends: libfreetype6:i386 but it is not going to be installed
Depends: libjpeg62:i386 but it is not going to be installed
Depends: libpng12-0:i386 but it is not going to be installed
Depends: libsm6:i386 but it is not going to be installed
Depends: libxdamage1:i386 but it is not going to be installed
Depends: libxext6:i386 but it is not going to be installed
Depends: libxfixes3:i386 but it is not going to be installed
Depends: libxinerama1:i386 but it is not going to be installed
Depends: libxrandr2:i386 but it is not going to be installed
Depends: libxrender1:i386 but it is not going to be installed
Depends: libxtst6:i386 but it is not going to be installed
Depends: zlib1g:i386 but it is not going to be installed
webmin : Depends: libauthen-pam-perl but it is not going to be installed
Depends: apt-show-versions but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Just open software-properties-gtk by entering ALT with F2 and enter software-properties-gtk
click on Download from option
from drop down select other option
than click on Select Best Server
than it will take time locate best server
than select best server
hit OK
than it will show out of date pop up
select reload option
first it complete now your problem is resolved congratulations :)
i am using ubuntu 14.04 .i am trying to install wine but getting following dependencies error .
I tried sudo apt-get install wine
I got this error-
The following packages have unmet dependencies:
wine : Depends: wine1.6 but it is not installable or
wine1.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
then tried - sudo apt-get install wine1.7 and get this -
The following packages have unmet dependencies:
wine1.7 : Depends: wine1.7-amd64 (= 1:1.7.44-0ubuntu1) but it is not going to be installed
Depends: wine1.7-i386 (= 1:1.7.44-0ubuntu1)
Recommends: fonts-horai-umefont but it is not installable
E: Unable to correct problems, you have held broken packages.
I tried then sudo apt-get install wine1.7-i386 but got this -
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
wine1.7-i386:i386 : Depends: libmpg123-0:i386 (>= 1.13.7) but it is not installable
Depends: libopenal1:i386 (>= 1:1.13) but it is not installable
Depends: libopencl-1.1-1:i386 but it is not installable
Depends: ocl-icd-libopencl1:i386 (>= 1.0) but it is not installable or
libopencl1:i386
Recommends: libcapi20-3:i386 but it is not installable
Recommends: libgif4:i386 but it is not going to be installed
Recommends: libosmesa6:i386 but it is not going to be installed
Recommends: libpcap0.8:i386 but it is not going to be installed
Recommends: libsane:i386 but it is not going to be installed
Recommends: libv4l-0:i386 but it is not going to be installed
Recommends: p11-kit-modules:i386 but it is not going to be installed
Recommends: unixodbc:i386
Recommends: wine-gecko2.34:i386 but it is not going to be installed
Recommends: wine-mono4.5.4:i386
E: Unable to correct problems, you have held broken packages.
I also tried -
sudo apt-get install -f
and got this
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
then tried sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
and then tried sudo apt-get update
and tried again but no luck .
and output for - dpkg --print-architectureis amd64
and for dpkg --print-foreign-architectures is i386
please help !!!
Thanks in advance !!
Does someone know why I get the following after "sudo apt-get install libboost-all-dev":
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
libboost-all-dev : Depends: libboost-context-dev but it is not going to be installed
Depends: libboost-coroutine-dev but it is not going to be installed
Depends: libboost-exception-dev but it is not going to be installed
Depends: libboost-graph-dev but it is not going to be installed
Depends: libboost-graph-parallel-dev but it is not going to be installed
Depends: libboost-locale-dev but it is not going to be installed
Depends: libboost-log-dev but it is not going to be installed
Depends: libboost-math-dev but it is not going to be installed
Depends: libboost-mpi-dev but it is not going to be installed
Depends: libboost-mpi-python-dev but it is not going to be installed
Depends: libboost-random-dev but it is not going to be installed
Depends: libboost-signals-dev but it is not going to be installed
Depends: libboost-timer-dev but it is not going to be installed
Depends: libboost-wave-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What can I do to change it?
You can fix it by using aptitude:
sudo apt-get install aptitude
sudo aptitude install libboost-all-dev
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Downgrade the following packages:
1) libboost-date-time1.54.0 [1.54.0-4ubuntu3.1 (now) -> 1.54.0-4ubuntu3 (trusty)]
2) libboost-python1.54.0 [1.54.0-4ubuntu3.1 (now) -> 1.54.0-4ubuntu3 (trusty)]
3) libboost-system1.54.0 [1.54.0-4ubuntu3.1 (now) -> 1.54.0-4ubuntu3 (trusty)]
4) libboost-thread1.54.0 [1.54.0-4ubuntu3.1 (now) -> 1.54.0-4ubuntu3 (trusty)]
5) libpci3 [1:3.2.1-1ubuntu5.1 (now) -> 1:3.2.1-1ubuntu5 (trusty)]
6) pciutils [1:3.2.1-1ubuntu5.1 (now) -> 1:3.2.1-1ubuntu5 (trusty)]
Accept this solution? [Y/n/q/?] y
The following packages will be DOWNGRADED:
libboost-date-time1.54.0 libboost-python1.54.0 libboost-system1.54.0
libboost-thread1.54.0 libpci3 pciutils
Accept this solution? [Y/n/q/?] y
Do you want to continue? [Y/n/?] y
I have just encountered the problem with the exact same package but it is a recurrent problem. I have solved the problem (installing libboost-all-dev) using the following methodology. It is a bit tedious but works fine in around 5 to 10 minutes (depending on the number of dependencies). In fact, you had almost done all the way to the solution.
For each package in your list of unmet dependencies, you have to follow the dependency until you find the package which can not be installed because it has another more recent package available. Then you force its installation in a downgraded version using the = sign with apt-get. For example in your case: apt-get install libboost1.54-dev=1.54.0-4ubuntu3
Once you have done all dependencies, you will be able to install your primary package (libboost-all-dev).
I do not know if there is a better (faster) way to do it.