Apt-get does not work in live-usb environment
Clash Royale CLAN TAG#URR8PPP
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 live-usb
add a comment |
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 live-usb
What are you trying to install packages on to? A filesystem in memory? A hard drive?
– Faheem Mitha
Dec 20 '15 at 19:55
1
Did you runapt-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:02
Yeah, I did apt-get update. That does not help. And I want to install it in the SSD.
– Saurabh Sinha
Dec 20 '15 at 23:24
Either you didn't runapt-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
Dec 20 '15 at 23:30
I removed some packages and re-installed them. Thanks for the help guys.
– Saurabh Sinha
Dec 21 '15 at 0:12
add a comment |
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 live-usb
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 live-usb
apt live-usb
edited Dec 20 '15 at 23:29
Gilles
534k12810741594
534k12810741594
asked Dec 20 '15 at 18:42
Saurabh SinhaSaurabh Sinha
12
12
What are you trying to install packages on to? A filesystem in memory? A hard drive?
– Faheem Mitha
Dec 20 '15 at 19:55
1
Did you runapt-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:02
Yeah, I did apt-get update. That does not help. And I want to install it in the SSD.
– Saurabh Sinha
Dec 20 '15 at 23:24
Either you didn't runapt-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
Dec 20 '15 at 23:30
I removed some packages and re-installed them. Thanks for the help guys.
– Saurabh Sinha
Dec 21 '15 at 0:12
add a comment |
What are you trying to install packages on to? A filesystem in memory? A hard drive?
– Faheem Mitha
Dec 20 '15 at 19:55
1
Did you runapt-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:02
Yeah, I did apt-get update. That does not help. And I want to install it in the SSD.
– Saurabh Sinha
Dec 20 '15 at 23:24
Either you didn't runapt-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
Dec 20 '15 at 23:30
I removed some packages and re-installed them. Thanks for the help guys.
– Saurabh Sinha
Dec 21 '15 at 0:12
What are you trying to install packages on to? A filesystem in memory? A hard drive?
– Faheem Mitha
Dec 20 '15 at 19:55
What are you trying to install packages on to? A filesystem in memory? A hard drive?
– Faheem Mitha
Dec 20 '15 at 19:55
1
1
Did you run
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:02
Did you run
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:02
Yeah, I did apt-get update. That does not help. And I want to install it in the SSD.
– Saurabh Sinha
Dec 20 '15 at 23:24
Yeah, I did apt-get update. That does not help. And I want to install it in the SSD.
– Saurabh Sinha
Dec 20 '15 at 23:24
Either you didn't run
apt-get update
recently or your source list is broken or incomplete. Run apt-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
Dec 20 '15 at 23:30
Either you didn't run
apt-get update
recently or your source list is broken or incomplete. Run apt-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
Dec 20 '15 at 23:30
I removed some packages and re-installed them. Thanks for the help guys.
– Saurabh Sinha
Dec 21 '15 at 0:12
I removed some packages and re-installed them. Thanks for the help guys.
– Saurabh Sinha
Dec 21 '15 at 0:12
add a comment |
1 Answer
1
active
oldest
votes
Have you tried aptitude instead of apt-get? BUT if apt-get isn't available that may not be either.
Also, do a search on "wget" and "git clone."
One last thing, is the Live with persistence? I'm no expert but that may make a difference.
No, the live is without persistence
– Saurabh Sinha
Dec 20 '15 at 23:21
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f250576%2fapt-get-does-not-work-in-live-usb-environment%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Have you tried aptitude instead of apt-get? BUT if apt-get isn't available that may not be either.
Also, do a search on "wget" and "git clone."
One last thing, is the Live with persistence? I'm no expert but that may make a difference.
No, the live is without persistence
– Saurabh Sinha
Dec 20 '15 at 23:21
add a comment |
Have you tried aptitude instead of apt-get? BUT if apt-get isn't available that may not be either.
Also, do a search on "wget" and "git clone."
One last thing, is the Live with persistence? I'm no expert but that may make a difference.
No, the live is without persistence
– Saurabh Sinha
Dec 20 '15 at 23:21
add a comment |
Have you tried aptitude instead of apt-get? BUT if apt-get isn't available that may not be either.
Also, do a search on "wget" and "git clone."
One last thing, is the Live with persistence? I'm no expert but that may make a difference.
Have you tried aptitude instead of apt-get? BUT if apt-get isn't available that may not be either.
Also, do a search on "wget" and "git clone."
One last thing, is the Live with persistence? I'm no expert but that may make a difference.
answered Dec 20 '15 at 19:50
Victor HatleyVictor Hatley
12
12
No, the live is without persistence
– Saurabh Sinha
Dec 20 '15 at 23:21
add a comment |
No, the live is without persistence
– Saurabh Sinha
Dec 20 '15 at 23:21
No, the live is without persistence
– Saurabh Sinha
Dec 20 '15 at 23:21
No, the live is without persistence
– Saurabh Sinha
Dec 20 '15 at 23:21
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f250576%2fapt-get-does-not-work-in-live-usb-environment%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What are you trying to install packages on to? A filesystem in memory? A hard drive?
– Faheem Mitha
Dec 20 '15 at 19:55
1
Did you run
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:02
Yeah, I did apt-get update. That does not help. And I want to install it in the SSD.
– Saurabh Sinha
Dec 20 '15 at 23:24
Either you didn't run
apt-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
Dec 20 '15 at 23:30
I removed some packages and re-installed them. Thanks for the help guys.
– Saurabh Sinha
Dec 21 '15 at 0:12