Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 431  / 2 Years ago, sat, february 5, 2022, 9:57:52

I removed packages I shouldn't have after using 'purge' to remove isc-dhcpd-server, isc-dhcpd-client and isc-dhcpd-common. Of the last two Iḿ actually wondering if I should have had them removed at all (I used isc-dhcpd to network-install wattOS (ubuntu 13.04 alternative) on an old laptop without cd-rom or USB boot, and after having finished I wanted to remove isc-dhcpd again..)



Along with the above stuff I managed to remove the following packages according to the /var/.../dpkg.log file:



ubuntu-minimal:i386 1.307
network-manager-gnome:i386 0.9.8.0-1ubuntu5.1
network-manager:i386 0.9.8.0-0ubuntu22
dnsmasq-base:i386 2.66-4ubuntu1
iputils-arping:i386 3:20121221-1ubuntu1
libgnome-bluetooth11:i386 3.8.1-2ubuntu2
libnetfilter-conntrack3:i386 1.0.3-1
libmnl0:i386 1.0.3-3
libnm-glib-vpn1:i386 0.9.8.0-0ubuntu22
libnm-gtk0:i386 0.9.8.0-1ubuntu5.1
libnm-glib4:i386 0.9.8.0-0ubuntu22
libnm-gtk-common:all 0.9.8.0-1ubuntu5.1
libnm-util2:i386 0.9.8.0-0ubuntu22
wpasupplicant:i386 1.0-3ubuntu2.1
libreadline5:i386 5.2+dfsg-2


Can somybody maybe help me by explaining how to manually reinstall them in the right order? I guess that if I start with the right ones (DNS, network manager, wpasupplicant) I should have my wireless connection back up and running, so that the rest might be a bit easier to finish in the command-line. I did try to google around a bit to find a solution, but I guess my problem is rather unique.



Just to be clear wattOS is running fine and I can use USB-sticks to get the packages on the specific PC, just the network is down due to the removed packages so I can do it with apt-get.



Maybe somebody can also explain me how to install the packages that I 'import' by means of the USB-stick.. I guess pcmanfm to open the folder, than saying 'open current folder in terminal' and then some magic with dpkg, right?


More From » apt

 Answers
1

The safest way to repair that would be to :




  1. Download all packages from packages.ubuntu.com

  2. Install them with the command :



    sudo dpkg -i NAME_OF_THE_PACKAGE


  3. If by misfortune, a package is missing, download it and restart from step 2.







1. Download all packages (click on i386 at the end of each page)





2. Copy the packages to a new directory in your HOME (for example ~/packages)



3. Open a terminal (CTRL-ALT-T) and go to the directory containing the packages :



cd ~/packages


4. Install them with this command (it's in the right order):
NOTE: * will automatically be replaced by the right name.



sudo dkpg -i limbn-util2* libnm-glib-vpn1* libnm-glib4* libnm-gtk-common* libnm-gtk0* libmnl0* libnetfilter-conntrack3* dnsmasq-base* iputils-arping* libgnome-bluetooth11* libreadline5* wpasupplicant* ubuntu-minimal* network-manager* network-manager-gnome*


5. Run apt-get to check if it's installed. :



sudo apt-get update


You may have to do this command, if asked :



sudo apt-get install -f


6. Reboot your PC and try to connect.



7. If you are connected, run the upgrade command to update your system :



sudo apt-get update && sudo apt-get upgrade





How did I knew the right order ?




  • Do a LIST of the needed packages.

  • Go to package.ubuntu.com .

  • Find the packages you are looking for, leave the page open.

  • Look at the dependences of each package, and open the webpage for all of them which are in your LIST.

  • Use documentation (or your brain) to understand that dependences must be installed before the package that needs them.

  • From there, use your logic to deduct the right order : each dependence must be installed before the package they depend on, and that even if multiple packages need only one dependence. The dependence need to be installed only once, then it's good to all packages needing it. => That means you start by installing the dependences that don't need any other package from your list, then proceed gradually until all packages are installed.


[#27649] Sunday, February 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olltea

Total Points: 238
Total Questions: 115
Total Answers: 107

Location: Moldova
Member since Tue, Feb 7, 2023
1 Year ago
;