I am working on a small project which requires Linux. So I made a live-usb for Ubuntu 14.04. I tried to install g++
and some other stuff but the apt-get
does not work. It shows that I have unmet-dependancies
. In fact, I cannot install anything.
What am I doing wrong? Should I make a persistent Live-usb? Or is it not possible to use apt-get in live environment at all?
My laptop is very shabby so I cannot boot into it because of serious hardware issues with my internal HDD. So live-usb is the only option I have.
Example of what happens:
root@ubuntu:~# sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
build-essential : Depends: g++ (>= 4:4.4.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The thing is, there are no broken packages.
apt-get update
to refresh the package lists first? Please edit your question to include a specific example of a package you tried to install, together with the complete error message. – steeldriver Dec 20 '15 at 21:02apt-get update
recently or your source list is broken or incomplete. Runapt-get update
again, and if that doesn't help, post the content of/etc/apt/sources.list
and of files in/etc/apt/sources.list.d
– Gilles 'SO- stop being evil' Dec 20 '15 at 23:30