无法再安装应用程序或更新

无法再安装应用程序或更新

尝试从 WINE HQ .deb 安装 WINE 后,我无法再获取更新或安装应用程序,并且会收到以下消息:

E:列表文件 /etc/apt/sources.list (组件) 中的条目 55 格式错误 E:无法读取源列表。

这是 Kubuntu 18.04 64 位。

我不知道 55 指的是什么,因为列表中的来源少于 55 个。我注意到文件 sources.list.save 比文件 sources.list 略长,但不知道切换这些文件是否会造成任何损坏。我不知道我可以在哪里附加工作文件(这是我的假设),以防万一需要它进行审查。请告诉我我可以提供哪些其他信息来帮助解决这个问题。

谢谢,我没看到哪里可以编辑这个问题。下面是……

# deb cdrom:[Kubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
deb http://archive.canonical.com/ubuntu bionic multiverse
deb-src http://archive.canonical.com/ubuntu bionic multiverse
deb https://dl/winehq.org/winehq.org/wine-builds/ubuntu/bionic main
# deb-src https://dl/winehq.org/winehq.org/wine-builds/ubuntu/bionic main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main

答案1

删除这些行

deb https://dl/winehq.org/winehq.org/wine-builds/ubuntu/bionic main
# deb-src https://dl/winehq.org/winehq.org/wine-builds/ubuntu/bionic main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main

一切都应该完成。

相关内容