Apt-get does not work in live-usb environment

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















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.










share|improve this question
























  • 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. 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
















0















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.










share|improve this question
























  • 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. 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














0












0








0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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. 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


















  • 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. 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

















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











1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer























  • No, the live is without persistence

    – Saurabh Sinha
    Dec 20 '15 at 23:21










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
);



);













draft saved

draft discarded


















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









0














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.






share|improve this answer























  • No, the live is without persistence

    – Saurabh Sinha
    Dec 20 '15 at 23:21















0














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.






share|improve this answer























  • No, the live is without persistence

    – Saurabh Sinha
    Dec 20 '15 at 23:21













0












0








0







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay