ubuntu 14.04:Error found when loading /root/.profile

本文提供了解决root用户自动登录后开机出现错误提示的方法,通过修改/root/.profile文件,将mesgn修改为tty-s&&mesgn,解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

0x00 前言

在修改让root用户自动登录后,开机有个错误提示:
Error found when loading /root/.profile

0x01 解决办法

已经提示了是在这个文件/root/.profile.
首先,打开这个文件,在终端中用命令:sudo gedit /root/.profile
然后,修改一下内容,把最后一行的mesg n修改为tty -s && mesg n

0x02 结尾

OK,问题解决.

sudo apt update [sudo] fhh 的密码: 命中:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-backports InRelease 忽略:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty InRelease 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-proposed InRelease 忽略:4 https://download.docker.com/linux/ubuntu focal InRelease 错误:5 https://download.docker.com/linux/ubuntu focal Release Could not handshake: Error in the pull function. [IP: 13.249.126.93 443] 获取:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB] 命中:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-security InRelease 命中:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty-updates InRelease 命中:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu trusty Release 命中:10 http://lenovo.archive.canonical.com focal InRelease 获取:12 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB] 命中:13 http://us.archive.ubuntu.com/ubuntu focal InRelease 获取:14 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB] 获取:15 http://us.archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [7,980 B] 获取:16 http://us.archive.ubuntu.com/ubuntu focal-backports/restricted amd64 DEP-11 Metadata [216 B] 获取:17 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.5 kB] 获取:18 http://us.archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 DEP-11 Metadata [212 B] 获取:19 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [276 kB] 获取:20 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 DEP-11 Metadata [212 B] 获取:21 http://us.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B] 获取:22 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [446 kB] 获取:23 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [65.3 kB] 获取:24 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 DEP-11 Metadata [212 B] 获取:25 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [940 B] 获取:26 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [160 kB] 命中:27 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease 正在读取软件包列表... 完成 E: 仓库 “https://download.docker.com/linux/ubuntu focal Release” 不再含有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
最新发布
03-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值