这里写目录标题
- 问题 (Error: Malformed line 1 in source list /etc/apt/sources.list.d/ruby.list )
- 解决方式 (修改配置文件)
- 结果 (成功修改)
- 修改ruby.list文件
问题 (Error: Malformed line 1 in source list /etc/apt/sources.list.d/ruby.list )
解决方式 (修改配置文件)
结果 (成功修改)
问题
java
Error: Malformed line 1 in source list /etc/apt/sources.list.d/ruby.list (type)
Error: The list of sources could not be read.
解决方式
java
cd /etc/apt/source.list.d
java
# deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official i386 DVD Binary-1 20200509-11:59]/ buster contrib main
# deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official i386 DVD Binary-1 20200509-11:59]/ buster contrib main
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
# buster-updates, previously known as 'volatile'
修改ruby.list文件
java
deb https://deb.ruby-lang.org/apt focal main
deb-src https://deb.ruby-lang.org/apt focal main