LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-06-2020, 06:28 PM   #1
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Rep: Reputation: Disabled
What apt-get packages do I need to install to get networking to work


I messed up my Ubuntu 18.04.2 workstation and now it only boots to CLI.

It doesn't have network capability in cli right now. So I can't even reinstall the stuff I was messing with that crippled it. I bet I could fix it all but it's missing repositories and with no network it can't download them.

So my question is- what would I need to install via apt-get (with no networking) that would networking back alive? Well install and/or what line command(s) to manually run whatever I already have?

What's the basic networking packages (it's ethernet, btw)?

thanks

Last edited by Rotwang2; 02-06-2020 at 06:29 PM.
 
Old 02-06-2020, 07:23 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Rotwang2 View Post
I messed up my Ubuntu 18.04.2 workstation and now it only boots to CLI.

It doesn't have network capability in cli right now. So I can't even reinstall the stuff I was messing with that crippled it. I bet I could fix it all but it's missing repositories and with no network it can't download them.

So my question is- what would I need to install via apt-get (with no networking) that would networking back alive? Well install and/or what line command(s) to manually run whatever I already have?

What's the basic networking packages (it's ethernet, btw)?

thanks
If you have messed it up that bad better to reinstall, that said all the packages that have been installed on your machine will be in the /var/cache/apt/archives/ directory. If you can figure out which ones you need to install with dpkg -i /var/cache/apt/archives/package.deb. Networking is setup during install by hardware discovery and loading the modules needed for it to work. Some of the time you need non-free hardware blobs to have it initialized, those are in a package you install.

Code:
root@haswell:/home/seeder1# ll /var/cache/apt/archives/
Display all 417 possibilities? (y or n)n
 
Old 02-06-2020, 09:25 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,403
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
Quote:
what would I need to install via apt-get (with no networking) that would networking back alive
You cannot install via apt-get without network access.

Did you lose wireless and wired both?
 
Old 02-07-2020, 02:21 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
1. check your apt history
2. networking can be achieved with command line tools. I suggest you try 'nm-cli' first.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
LXer: Apt-get remove SUSE; apt-get install Etch LXer Syndicated Linux News 0 05-26-2007 07:46 PM
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 05:41 PM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-10-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration