[Ubuntu] Newly installed Ubuntu18.04-Offline installation of gcc, make, network card driver, etc.

Basic environment :

Ubuntu host: 18.04.5 LTS (new system, no network card driver configured)

Ubuntu boot USB disk: need the image file in it

Wireless network card: Intel I219-V





Install basic dependencies offline

        Since the Ubuntu system has just been installed and the network card driver has not yet been configured, online installation dependencies cannot be implemented on the network. Therefore, it is necessary to install the relevant dependencies offline and then configure the relevant network card drivers! Many tutorials on the Internet require you to download the files separately and then install them in order, which is more troublesome, so this article directly uses your original startup USB disk to find the required dependencies and install them directly!

All basic dependency files pool/mainare below !

cd pool/main/
find -name gcc*

Note : Directly installing the gcccorresponding debfile will prompt that the relevant dependencies are missing, so you need to install the required dependencies first! The following installation sequence may vary and can be adjusted according to actual conditions!

/g/gcc-8All lib files in:

sudo dpkg -i lib*.deb

pool/main/l/linux/debFiles under :

sudo dpkg -i linux-libc-dev_4.15.0-76.86_amd64.deb

/g/glibcAll lib files in:

sudo dpkg -i lib*.deb

/g/gcc-7Files in the folder:

sudo dpkg -i lib*.deb
sudo dpkg -i g*.deb

/g/gcc-8Files in the folder:

sudo dpkg -i lib*.deb

make offline installation

cd /mnt/usb/pool/main/m/make-dfsg
sudo dpkg -i make_4.1-9.1ubuntu1_amd64.deb

After the installation is completed, use the command gcc or g++ or make --version, and an error will be reported. At this time, enter the /usr/bin directory and you will find that the tool name will have a version number. Use the full name to view the version number.

Set the tool as the default tool: sudo ln -s /usr/bin/tool ​​name-x.xxx /usr/bin/tool ​​name //Create a new connection file pointing to the new tool name 

Reference: Ubuntu offline installation of GCC, G++, Make tools and QT development environment construction - Aaron sees the world - Blog Park

Basic Ubuntu operations (2) - Installing the gcc compiler and file soft links_hua111hua's blog-CSDN blog

Intel I219-V network card driver installation

Reference: Solution to the problem of installing I219-V network card driver in ubuntu16.04_ailianda's blog-CSDN blog

How to solve the problem of installing I219-V network card driver in ubuntu16.04 LTS - Brief Book

Guess you like

Origin blog.csdn.net/qq_35097289/article/details/121996963