apt文件问题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
相关推荐
小羊没烦恼!4 天前
初探性能优化——2个月到4小时的性能提升
java·开发语言·windows·算法·c#
rockmelodies4 天前
# Windows Server2008 R2 Standard(SP1镜像U盘)重置本地管理员密码【完整详细步骤】
windows·密码破解
伞伞悦读4 天前
【第38期】Python 模块与包详解:import、from、模块搜索路径、包结构和 __init__
开发语言·python
C语言小火车4 天前
C/C++ 为什么需要编译器?
开发语言·c++
霍霍的袁4 天前
【C++】map 和 set 的使用 | 从用法到底层
开发语言·c++·学习·visual studio
孙启超4 天前
【AI开发之Rust】第 11 课:智能指针与内部可变性
开发语言·后端·rust
此生决int4 天前
深入理解C++系列(20)——C++11(下)
开发语言·c++
CoderYanger4 天前
A.每日一题:835. 图像重叠
java·开发语言·程序人生·leetcode·面试·职场和发展·学习方法
伞伞悦读4 天前
【第37期】Python JSON 与配置详解:序列化、反序列化、嵌套结构和配置文件
开发语言·python·json
CCCCCCCCharlie4 天前
Linux进程控制四大核心操作
linux·开发语言