About ubuntu system to avoid unnecessary source updates

  1. Self-mirror source update or delete operation
    The configuration file is in the /etc/apt/sources.list directory.
    We can view the current source configuration items by using the command
sudo vim /etc/apt/sources.list 

Since I have completely uninstalled wine-related applications, source detection updates will still be performed here, and it looks very awkward every time (advanced obsessive-compulsive disorder). So I
annotated it, as shown in the figure below,
insert image description here
and then I saw it again There is also the source of the ppa of the application I uninstalled, which is also in my update source directory. The obsessive-compulsive disorder started to attack again. I started to find the directory of this source and delete it.

# 注意通过ppa 源的进行更新的,都在这个目录底下
# 我们通过此目录查看哪些是我们已经卸载了的,对卸载的源文件目录进行删除就Ok了 
cd  /etc/apt/sources.list.d     

# 删除命令 (谨慎操作此命令,可能避免不必要的麻烦哟。)
 rm  -rf  ****

Remarks:
Refer to the document ppa source processing
, refer to the document mirror source update

Guess you like

Origin blog.csdn.net/weixin_39370315/article/details/88682219