當我嘗試從終端更新 Ubuntu 20.04 LTS 時,我收到此錯誤訊息,請問有什麼幫助嗎?
N: Ignoring file 'rethinkdb.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'rethinkdb.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Type '“deb' is not known on line 1 in source list /etc/apt/sources.list.d/signal-xenial.list
E: The list of sources could not be read.
答案1
「忽略」訊息將透過以下方式修復:cd /etc/apt/sources.list.d/ && rm rethinkdb.list.save.*
。請注意,刪除是永久性的,但「忽略」並不是致命錯誤:系統將繼續。
E: 來源清單 /etc/apt/sources.list.d/signal-xenial.list 中第 1 行的類型「deb」未知 E: 無法讀取來源清單。
……雖然是致命的。使用編輯器檢查/etc/apt/sources.list.d/signal-xenial.list
並修復錯誤。或刪除檔案(因為它指的是 xenial = 16.04)...
cd /etc/apt/sources.list.d/ && rm signal-xenial.list