Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 650  / 3 Years ago, mon, november 1, 2021, 1:50:51

I was having problems upgrading from 20.04 to 20.10. I read on SO that someone fixed the issue by uninstalling libssh-4, so I ran sudo apt remove libssh-4. To my horror a lot of things were removed, including Libre Office, network services and many other things.


The prompt showed a list of what would be removed, but it didnt include network services, eg:


The following packages were automatically installed and are no longer required:
libiw30 libkeybinder0 libnghttp2-14 librtmp1 libwnck-common libwnck22 libxres1 lxpanel-data
Use 'apt autoremove' to remove them.

I now have no wifi or ethernet capabilities. And I dont have a usb stick present with which to try re-installing.


Is there way I can reinstall networking capabilities?


More From » networking

 Answers
3

If


sudo systemctl restart network-manager

code worked, then try this:
check which network adapter is from your ethernet (probably "eth0") and see if has an ipaddress.


ifconfig

If not, then you can do this:


sudo nano /etc/network/interfaces

and enter the following two lines:


auto eth0


iface eth0 inet dhcp


Then do CTRL+O and press enter
Then CTRL+X
And use the command below again:


sudo systemctl restart network-manager

If it worked you can reinstall your packages again from the internet


But I actually recommend you to just reinstall Ubuntu when possible, because as you say, you don't know which packages are missing, so you can run into trouble later if you miss some important ones.




EDIT: as @mchid just commented, you can check the missing packages using


sudo nano /var/log/apt/history.log

I didn't know that, so I learned some more things today :)


[#2386] Wednesday, November 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
;