Debian系统用久了,磁盘空间不够了,所以要清理无用的系统垃圾。
操作方法
1、升级软件包。清理前很有必要升级软件包。
sudo apt update && sudo apt upgrade -y
2、删除软件安装包。
系统日志是管理Linux系统的极其重要的组成部分,它们包含有关在 Linux 操作系统上运行的服务器、应用程序和服务的记录、事件或消息集。 每当出现问题时,系统管理员都会使用它们进行故障排除。 Debian作为Linux系统,也遵循这些设计。Linux中有很多日志文件位于 /var/log/ 目录中,作为纯文本的日志文件,查看这些日志文件会非常的方便。
一、Debian日志文件介绍
问题描述
一台很老的Debian使用apt-get update的时候,出现一下报错:
Get:1 http://mirrors.163.com/debian buster InRelease [122 kB]
Get:2 http://mirrors.163.com/debian buster-updates InRelease [56.6 kB]
Get:3 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Reading package lists... Done
N: Repository 'http://mirrors.163.com/debian buster InRelease' changed its 'Version' value from '10.7' to '10.13'
Linux的网络配置文件/etc/network/interfaces中一般用auto或者allow-hotplug来定义网络接口的启动行为。
1、auto <interface_name>
在系统启动的时候启动网络接口,无论该网络接口设备是否存在,有无连接网线,如果该接口配置了DHCP,系统都会去执行获取DHCP,直到该接口超时后才会继续。
2、allow-hotplug <interface_name>