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
相关推荐
阿白的白日梦3 天前
winget基础管理---更新/修改源为国内源
windows
埃博拉酱7 天前
VS Code Remote SSH 连接 Windows 服务器卡在"下载 VS Code 服务器":prcdn DNS 解析失败的诊断与 BITS 断点续传
windows·ssh·visual studio code
唐宋元明清21888 天前
.NET 本地Db数据库-技术方案选型
windows·c#
郑州光合科技余经理8 天前
代码展示:PHP搭建海外版外卖系统源码解析
java·开发语言·前端·后端·系统架构·uni-app·php
feifeigo1238 天前
matlab画图工具
开发语言·matlab
加号38 天前
windows系统下mysql多源数据库同步部署
数据库·windows·mysql
dustcell.8 天前
haproxy七层代理
java·开发语言·前端
norlan_jame8 天前
C-PHY与D-PHY差异
c语言·开发语言
多恩Stone8 天前
【C++入门扫盲1】C++ 与 Python:类型、编译器/解释器与 CPU 的关系
开发语言·c++·人工智能·python·算法·3d·aigc
tryCbest8 天前
Windows环境下配置pip镜像源
windows·pip