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
相关推荐
张张123y16 分钟前
后端第六课:Python 语法速通(0 基础入门,AI 应用开发的第一门语言)
开发语言·人工智能·python·ai·后端开发
Want59518 分钟前
Python跳动的爱心①
开发语言·python·数学建模
ydjs678899-bot1 小时前
您的Next.js中间件匹配器配置可能会跳过您认为它保护的路由
开发语言·javascript·中间件
Chengbei111 小时前
JsOwl|AI 赋能 JS 敏感信息扫描器,AST + 正则、source‑map 源码还原、登录态爬虫输出交互式 HTML 报告
开发语言·javascript·网络·人工智能·爬虫·网络安全·自动化
David猪大卫1 小时前
【C++修炼】string类:string类的模拟实现
c语言·开发语言·数据结构·c++·经验分享·笔记·学习
geovindu1 小时前
rust: Iterator Pattern
开发语言·后端·设计模式·rust·行为模式·迭代器模
SDWAN_Cheap2 小时前
深度解析什么是CDN加速:从原理到实践的技术拆解
开发语言·cdn加速
鬼手点金2 小时前
模型即 Agent:当模型本身成为产品
开发语言·前端·人工智能·python·机器学习
染指11102 小时前
147.Agent-LangGraph归并函数
开发语言·人工智能·python·langchain·agents
Elastic 中国社区官方博客2 小时前
教程:监控 Java 应用
java·开发语言·数据库·elasticsearch·搜索引擎·全文检索