SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-09-08 10:50:50

mzsade
#! Junkie
Registered: 2009-09-27
Posts: 276

[SOLVED] Install software in Jessie from any Debian based live media

Cannot connect to the Internet from my Debian minimal (with OpenBox) after i butchered my network. Saw lots of upgradable firmware in synaptic and also need to reinstall NetworkManager, maybe that's why i can't. Have a LMDE live persistent usb and also another LMDE partition on the same machine with connectivity. Would someone please tell me how to go about it?

I just thought of uncommenting the deb CDRom in my sources.list and plugging in the NetInstall usb to reinstall NetworkManager. But my question still stands regarding updating, upgrading and installing software from a live medium. Thanks.

Last edited by mzsade (2015-09-08 15:52:13)

Offline

Help fund CrunchBang, donate to the project!

#2 2015-09-08 11:29:17

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [SOLVED] Install software in Jessie from any Debian based live media

sudo dpkg -i /var/cache/apt/archives/package-name.deb

Offline

#3 2015-09-08 13:45:02

mzsade
#! Junkie
Registered: 2009-09-27
Posts: 276

Re: [SOLVED] Install software in Jessie from any Debian based live media

sudo su
TARGET=/media/sda3 #sda3 is my root partition
mkdir -p $TARGET 
mount /dev/sda3 $TARGET
mount --bind /dev     $TARGET/dev
mount --bind /dev/pts $TARGET/dev/pts
mount --bind /proc    $TARGET/proc
mount --bind /sys     $TARGET/sys
cp /etc/resolv.conf    $TARGET/etc/
chroot $TARGET /bin/bash

Offline

#4 2015-09-08 14:14:00

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [SOLVED] Install software in Jessie from any Debian based live media

Last edited by damo (2015-09-08 14:15:55)

Offline

#5 2015-09-08 14:38:05

mzsade
#! Junkie
Registered: 2009-09-27
Posts: 276

Re: [SOLVED] Install software in Jessie from any Debian based live media

Offline

#6 2015-09-08 15:25:11

mzsade
#! Junkie
Registered: 2009-09-27
Posts: 276

Re: [SOLVED] Install software in Jessie from any Debian based live media

Yaba-daba-doo! That's one heck of a versatile how-to. D

Had a problem initially with

cp /etc/resolv.conf    $TARGET/etc/

Then remembered i had to

rm /etc/resolv.conf && touch /etc/resolv.conf

Rebooted into the Debian installer after doing that, the rest was smooth sailing. Thank you so much, this chroot thing is really awesome!

Offline

#7 2015-09-08 16:39:05

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [SOLVED] Install software in Jessie from any Debian based live media

smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo