E:列表文件/etc/apt/sources.list.d/sbt.list(套件)中格式错误的条目 1 [英] E: Malformed entry 1 in list file /etc/apt/sources.list.d/sbt.list (Suite)

查看:72
本文介绍了E:列表文件/etc/apt/sources.list.d/sbt.list(套件)中格式错误的条目 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 Linux 上安装 SBT 时运行 sudo apt-get update 并出现此错误

I run sudo apt-get update when trying to instal SBT on linux and get this errors

  1. E:列表文件/etc/apt/sources.list.d/sbt.list(套件)中格式错误的条目 1
  2. E:无法读取来源列表.

提前致谢.

推荐答案

导航到文件:$sudo -H gedit/etc/apt/sources.list.d/sbt.list

Navigate to file: $sudo -H gedit /etc/apt/sources.list.d/sbt.list

该文件应包含一行:deb https://dl.bintray.com/sbt/debian/

The file should contain a single line: deb https://dl.bintray.com/sbt/debian/

用# 注释掉这一行并保存.

Comment this line out with # and save.

重新运行 sudo apt-get update 应该可以解决问题.

Rerun sudo apt-get update and the problem should be resolved.

这篇关于E:列表文件/etc/apt/sources.list.d/sbt.list(套件)中格式错误的条目 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆