Debian 9 Software Source Configuration Update
Overview
Since the Debian 9 OS has reached end of life (EOL), Linux community no longer maintains this version of OS, and the current Debian repository no longer supports Debian 9 installation package. We recommend upgrading your OS to Debian 11 and or above.
If using the Debian 9 OS remains necessary for your services and you need to install software packages, refer to this guide to modify the software repository configuration in Debian 9 instances and utilize the debian-archive source to fulfill your repository needs.
Software repository address: http://mirrors.baidubce.com/debian-archive/
Configuration method
Modify the configuration in /etc/apt/sources.list as follows:
1deb http://mirrors.baidubce.com/debian-archive/debian stretch-backports main contrib non-free
2deb-src http://mirrors.baidubce.com/debian-archive/debian stretch-backports main contrib non-free
3deb http://mirrors.baidubce.com/debian-archive/debian stretch main contrib non-free
4deb-src http://mirrors.baidubce.com/debian-archive/debian stretch main contrib non-free
5deb http://mirrors.baidubce.com/debian-archive/debian-security stretch/updates main contrib non-free
6deb-src http://mirrors.baidubce.com/debian-archive/debian-security stretch/updates main contrib non-free
7deb http://mirrors.baidubce.com/debian-archive/debian stretch-proposed-updates main contrib non-free
8deb-src http://mirrors.baidubce.com/debian-archive/debian stretch-proposed-updates main contrib non-free
After exiting editing, execute the following command to update the cache:
1apt-get update
After completing the setup, your Debian 9 instance will be able to use apt to install applications as usual.
