0

I need to install wifi drivers on my laptop, the drivers I have use 'Make' during the install process.

How can I download 'Make' without installing and save to usb (obviously using a pc with internet connection)?

Kaigo
  • 515

2 Answers2

1

You can ask apt-get for the packages that will be installed like this:

sudo apt-get --print-uris install make | cut -d"'" -f2 | grep http > /tmp/packages.list

Then you copy that file and, on another computer you do:

wget -i packages.list

Then you move the .deb packages you just downloaded to /var/cache/apt/archives on the unconnected computer.

And run:

sudo apt-get install make

That should do it.

Eduardo Trápani
  • 1,088
  • 1
  • 7
  • 10
1

First, download the packages listed below

http://archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_4.1-9.1ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-3ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libgcc1_8-20180414-1ubuntu2_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/gcc-8-base_8-20180414-1ubuntu2_amd64.deb

make requires libc6, libc6 requires libgcc1, libgcc1 requires gcc-8-base.

Copy these packages to a folder and transfer it to the pc on which they are to be installed.

Now, open a terminal into that folder and type the command

sudo dpkg -i *

Tejas Lotlikar
  • 2,945
  • 5
  • 17
  • 26
  • I bricked my Ubuntu machine by doing this. There were issues with libc which the OS depended on, and after that it wouldn't boot.

    I'm not saying your answer is wrong, but I am saying that anyone following your instructions had better know what they are doing (I didn't) or they could end up in the same situation as I did.

    – matt_rule Jul 15 '21 at 17:23
  • In my case I already had libc.so.6 installed in /usr/lib/x86_64-linux-gnu/ so my first mistake was to try installing it without checking for its existence first. Installing make on its own without the other three packages worked. – matt_rule Jul 15 '21 at 17:40
  • @matt_rule, since the OP did not specify the version of Ubuntu he/she is using, i couldn't give a very specific answer. Apologies – Tejas Lotlikar Jul 16 '21 at 18:43
  • It's not your fault it's mine :) – matt_rule Jul 17 '21 at 09:37