debian update source sources, apt to install net-tools (netstat command, etc.)

Due

After debian9 installed, to look at the port situation, there's no netstat command. Too strange.
The original need to manually add net-tools kit.
So apt-get install net-tools. Back to me:
Media Change: Please INSERT at The Disc Labeled
'Debian the GNU / Linux 9.12.0 the Stretch - Official i386 DVD Binary-1 20200209-03: 39'
in at The Drive '/ Media / cdrom /' and Press [the Enter]
also to insert the disk, fainted, apt why use.
So update source, apt update, apt-get update on a test, or not, still let insert disk. This time need to seriously look.

Update sources

Found sources of record file is /etc/apt/sources.list.
Downloaded to the local use winscp, then open with notepad ++, found

# deb cdrom:[Debian GNU/Linux 9.12.0 _Stretch_ - Official i386 DVD Binary-1 20200209-03:39]/ stretch contrib main
deb cdrom:[Debian GNU/Linux 9.12.0 _Stretch_ - Official i386 DVD Binary-1 20200209-03:39]/ stretch contrib main

deb http://ftp.jp.debian.org/debian/ stretch main
deb-src http://ftp.jp.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main contrib
deb-src http://security.debian.org/debian-security stretch/updates main contrib
# stretch-updates, previously known as 'volatile'
deb http://ftp.jp.debian.org/debian/ stretch-updates main contrib
deb-src http://ftp.jp.debian.org/debian/ stretch-updates main contrib

The first quickly put out the cdrom line registration, then the domestic source added to the list:
deb http://ftp.cn.debian.org/debian the Stretch main
deb http://ftp.cn.debian.org/debian-security the Stretch / the Updates main
deb http://ftp.cn.debian.org/debian the Stretch-the Updates main
then update
and then follow online tutorials, read about the installation https source tools: apt install apt-transport-https
then https source added to the list:
the deb https://mirrors.tuna.tsinghua.edu.cn/debian main contrib non-Free Stretch
the deb https://mirrors.tuna.tsinghua.edu.cn/debian Stretch contrib non-main-Free Updates
the deb Stretch https://mirrors.tuna.tsinghua.edu.cn/debian-security / Updates main contrib non-Free
Update again.
Then install net-tools can be installed.

Relations apt, apt-get is

Just seems apt, apt-get have tried, what is the relationship between two ah.
Summary: apt = apt-get, apt -cache and apt-config collection of the most commonly used command options, can provide the necessary command options for package management. apt-get though not being abandoned, but as a normal user, or should be the first to use apt.
Europe, and later on with the apt, it is not then consider apt-get it, even less typing it.

Published 10 original articles · won praise 0 · Views 134

Guess you like

Origin blog.csdn.net/misisippi68/article/details/105012605