![无法升级 Firefox](https://linux22.com/image/914054/%E6%97%A0%E6%B3%95%E5%8D%87%E7%BA%A7%20Firefox%20.png)
当我尝试在 Ubuntu 上升级 Firefox 时,我在终端中收到此消息
E: Type '$' is not known on line 1 in source list /etc/apt/sources.list.d/brave-browser-release-bionic.list
E: The list of sources could not be read.
E: Type '$' is not known on line 1 in source list /etc/apt/sources.list.d/brave-browser-release-bionic.list
E: The list of sources could not be read.
答案1
来自评论...
cat /etc/apt/sources.list.d/brave-browser-release-bionic.list
输出是...
$ sudo apt update $ sudo apt install brave-browser brave-keyring
所以这样做...
删除该/etc/apt/sources.list.d/brave-browser-release-bionic.list
文件,因为其内容完全无效。
sudo rm -i /etc/apt/sources.list.d/brave-browser-release-bionic.list