Possible to install packages to a separate Linux installation?












0















So I was trying to get a CentOS designed application to work on Ubuntu, and played around with some graphics drivers. Well, in my spree of copy and pasting SE suggestions into my terminal, I broke something bad. I no longer have any GUI, and am stuck in tty. Trying to run startx tells me that /usr/bin/X doesn't exist. Awesome. I think I could fix it with



sudo apt-get install --reinstall ubuntu-desktop



but I can't do this because I have no internet connection from tty, and cannot find any working solution to get wifi connected using wpa_supplicant, or anything else. As far as I understand, recovery mode will be useless too, without an internet connection.



So, instead I installed an Ubuntu 16.04 image onto a USB stick, and booted from there (which is what I'm typing this post from). Here, I have access to all my files, great, and have GUI and internet connection working fine.



Now, is there a way for me to repair my original Ubuntu while having booted from the USB? I don't really know how apt-get works, but I would imagine there should be some way to download the ubuntu-desktop files while I have internet connection, and then reboot into my original Ubuntu's tty, and do the install. No? Suggestions?



Edit:



Okay, I can



sudo apt-get install --download-only ubuntu-desktop --reinstall



to get the deb package file onto the live-usb. Now figuring out how to move it to my machine/access it from my other installation...










share|improve this question

























  • In tty; were you in runlevel 1 (no networking, no gui) & didn't realize it? I realize from your description you believe you've destroyed gui, but I'm wondering if you bypassed issues by putting yourself in single-user mode which caused the no networking

    – guiverc
    Mar 18 at 22:39











  • I believe you can mount your main hdd from live system, and put the file there.

    – Emmet
    Mar 19 at 0:39











  • @Emmet Hmm, one would think... I can't solve permissions issues

    – Anonymous
    Mar 19 at 4:57











  • @guiverc sorry, I'm not sure what your comment means

    – Anonymous
    Mar 19 at 4:57











  • In live system, you don't need password to invoke root access. Simply sudo su will grant you a root access

    – Emmet
    Mar 19 at 5:00
















0















So I was trying to get a CentOS designed application to work on Ubuntu, and played around with some graphics drivers. Well, in my spree of copy and pasting SE suggestions into my terminal, I broke something bad. I no longer have any GUI, and am stuck in tty. Trying to run startx tells me that /usr/bin/X doesn't exist. Awesome. I think I could fix it with



sudo apt-get install --reinstall ubuntu-desktop



but I can't do this because I have no internet connection from tty, and cannot find any working solution to get wifi connected using wpa_supplicant, or anything else. As far as I understand, recovery mode will be useless too, without an internet connection.



So, instead I installed an Ubuntu 16.04 image onto a USB stick, and booted from there (which is what I'm typing this post from). Here, I have access to all my files, great, and have GUI and internet connection working fine.



Now, is there a way for me to repair my original Ubuntu while having booted from the USB? I don't really know how apt-get works, but I would imagine there should be some way to download the ubuntu-desktop files while I have internet connection, and then reboot into my original Ubuntu's tty, and do the install. No? Suggestions?



Edit:



Okay, I can



sudo apt-get install --download-only ubuntu-desktop --reinstall



to get the deb package file onto the live-usb. Now figuring out how to move it to my machine/access it from my other installation...










share|improve this question

























  • In tty; were you in runlevel 1 (no networking, no gui) & didn't realize it? I realize from your description you believe you've destroyed gui, but I'm wondering if you bypassed issues by putting yourself in single-user mode which caused the no networking

    – guiverc
    Mar 18 at 22:39











  • I believe you can mount your main hdd from live system, and put the file there.

    – Emmet
    Mar 19 at 0:39











  • @Emmet Hmm, one would think... I can't solve permissions issues

    – Anonymous
    Mar 19 at 4:57











  • @guiverc sorry, I'm not sure what your comment means

    – Anonymous
    Mar 19 at 4:57











  • In live system, you don't need password to invoke root access. Simply sudo su will grant you a root access

    – Emmet
    Mar 19 at 5:00














0












0








0








So I was trying to get a CentOS designed application to work on Ubuntu, and played around with some graphics drivers. Well, in my spree of copy and pasting SE suggestions into my terminal, I broke something bad. I no longer have any GUI, and am stuck in tty. Trying to run startx tells me that /usr/bin/X doesn't exist. Awesome. I think I could fix it with



sudo apt-get install --reinstall ubuntu-desktop



but I can't do this because I have no internet connection from tty, and cannot find any working solution to get wifi connected using wpa_supplicant, or anything else. As far as I understand, recovery mode will be useless too, without an internet connection.



So, instead I installed an Ubuntu 16.04 image onto a USB stick, and booted from there (which is what I'm typing this post from). Here, I have access to all my files, great, and have GUI and internet connection working fine.



Now, is there a way for me to repair my original Ubuntu while having booted from the USB? I don't really know how apt-get works, but I would imagine there should be some way to download the ubuntu-desktop files while I have internet connection, and then reboot into my original Ubuntu's tty, and do the install. No? Suggestions?



Edit:



Okay, I can



sudo apt-get install --download-only ubuntu-desktop --reinstall



to get the deb package file onto the live-usb. Now figuring out how to move it to my machine/access it from my other installation...










share|improve this question
















So I was trying to get a CentOS designed application to work on Ubuntu, and played around with some graphics drivers. Well, in my spree of copy and pasting SE suggestions into my terminal, I broke something bad. I no longer have any GUI, and am stuck in tty. Trying to run startx tells me that /usr/bin/X doesn't exist. Awesome. I think I could fix it with



sudo apt-get install --reinstall ubuntu-desktop



but I can't do this because I have no internet connection from tty, and cannot find any working solution to get wifi connected using wpa_supplicant, or anything else. As far as I understand, recovery mode will be useless too, without an internet connection.



So, instead I installed an Ubuntu 16.04 image onto a USB stick, and booted from there (which is what I'm typing this post from). Here, I have access to all my files, great, and have GUI and internet connection working fine.



Now, is there a way for me to repair my original Ubuntu while having booted from the USB? I don't really know how apt-get works, but I would imagine there should be some way to download the ubuntu-desktop files while I have internet connection, and then reboot into my original Ubuntu's tty, and do the install. No? Suggestions?



Edit:



Okay, I can



sudo apt-get install --download-only ubuntu-desktop --reinstall



to get the deb package file onto the live-usb. Now figuring out how to move it to my machine/access it from my other installation...







14.04 16.04 live-usb bios






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 18 at 22:26







Anonymous

















asked Mar 18 at 22:17









AnonymousAnonymous

10114




10114













  • In tty; were you in runlevel 1 (no networking, no gui) & didn't realize it? I realize from your description you believe you've destroyed gui, but I'm wondering if you bypassed issues by putting yourself in single-user mode which caused the no networking

    – guiverc
    Mar 18 at 22:39











  • I believe you can mount your main hdd from live system, and put the file there.

    – Emmet
    Mar 19 at 0:39











  • @Emmet Hmm, one would think... I can't solve permissions issues

    – Anonymous
    Mar 19 at 4:57











  • @guiverc sorry, I'm not sure what your comment means

    – Anonymous
    Mar 19 at 4:57











  • In live system, you don't need password to invoke root access. Simply sudo su will grant you a root access

    – Emmet
    Mar 19 at 5:00



















  • In tty; were you in runlevel 1 (no networking, no gui) & didn't realize it? I realize from your description you believe you've destroyed gui, but I'm wondering if you bypassed issues by putting yourself in single-user mode which caused the no networking

    – guiverc
    Mar 18 at 22:39











  • I believe you can mount your main hdd from live system, and put the file there.

    – Emmet
    Mar 19 at 0:39











  • @Emmet Hmm, one would think... I can't solve permissions issues

    – Anonymous
    Mar 19 at 4:57











  • @guiverc sorry, I'm not sure what your comment means

    – Anonymous
    Mar 19 at 4:57











  • In live system, you don't need password to invoke root access. Simply sudo su will grant you a root access

    – Emmet
    Mar 19 at 5:00

















In tty; were you in runlevel 1 (no networking, no gui) & didn't realize it? I realize from your description you believe you've destroyed gui, but I'm wondering if you bypassed issues by putting yourself in single-user mode which caused the no networking

– guiverc
Mar 18 at 22:39





In tty; were you in runlevel 1 (no networking, no gui) & didn't realize it? I realize from your description you believe you've destroyed gui, but I'm wondering if you bypassed issues by putting yourself in single-user mode which caused the no networking

– guiverc
Mar 18 at 22:39













I believe you can mount your main hdd from live system, and put the file there.

– Emmet
Mar 19 at 0:39





I believe you can mount your main hdd from live system, and put the file there.

– Emmet
Mar 19 at 0:39













@Emmet Hmm, one would think... I can't solve permissions issues

– Anonymous
Mar 19 at 4:57





@Emmet Hmm, one would think... I can't solve permissions issues

– Anonymous
Mar 19 at 4:57













@guiverc sorry, I'm not sure what your comment means

– Anonymous
Mar 19 at 4:57





@guiverc sorry, I'm not sure what your comment means

– Anonymous
Mar 19 at 4:57













In live system, you don't need password to invoke root access. Simply sudo su will grant you a root access

– Emmet
Mar 19 at 5:00





In live system, you don't need password to invoke root access. Simply sudo su will grant you a root access

– Emmet
Mar 19 at 5:00










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1126761%2fpossible-to-install-packages-to-a-separate-linux-installation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1126761%2fpossible-to-install-packages-to-a-separate-linux-installation%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

數位音樂下載

格利澤436b

When can things happen in Etherscan, such as the picture below?