我尝试安装 qt-5,但
E: Malformed entry 11 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
E: Malformed entry 11 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
我的sources.list
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://55.archive.ubuntu.com/ubuntu/ xenial main
###### Ubuntu Update Repos
deb http://55.archive.ubuntu.com/ubuntu/ xenial-updates main
deb-src http://55.archive.ubuntu.com/ubuntu/ xenial-updates
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
#------------------------------------------------------------------------------#
# UNOFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### 3rd Party Binary Repos
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6DAEA80
deb http://ppa.launchpad.net/boomaga/ppa/ubuntu xenial main # Boomaga PPA - https://launchpad.net/~boomaga/+archive/ubuntu/ppa
## Run this command: wget -q -O - http://dano.cu.cc/1Aci9Qp | sudo apt-key add - && sudo apt-get update
deb http://repo.daniil.it lenny main # Daniil's Bash Video Download - http://daniil.it
## Run this command: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 614C4B38
deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial main # Gimp PPA - https://launchpad.net/~otto-kesselgulasch/+archive/gimp
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B1510FD
deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial main # GNOME3 Extra Apps PPA - https://launchpad.net/~gnome3-team/+archive/gnome3
## Run this command: wget -q https://dl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # Google Chrome Browser - http://www.google.com/linuxrepositories/
## Run this command: wget -q https://dl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main # Google Earth - http://www.google.com/linuxrepositories/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu xenial main # Mozilla Daily Build Team PPA - http://edge.launchpad.net/~ubuntu-mozilla-daily/+archive/ppa
## Run this command: sudo wget -O - http://apt.mucommander.com/apt.key | sudo apt-key add -
deb http://apt.mucommander.com stable main non-free contrib # muCommander - http://www.mucommander.com/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F24AEA9FB05498B7
deb [arch=i386] http://repo.steampowered.com/steam/ precise steam # Steam for Linux - http://store.steampowered.com/about/
## Run this command: curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
deb http://apt.syncthing.net/ syncthing release # Syncthing - https://syncthing.net/
内容/etc/apt/sources.list.d
canonical_partner.list google.list.save staticfloat-ubuntu-julia-deps-xenial.list vivaldi.list.save
canonical_partner.list.save hexinator.list staticfloat-ubuntu-julia-deps-xensave
google.list libdvdcss.list.save vivaldi.list
ial.list.save webupd8team-ubuntu-java-xenial.list
google-chrome.list hexinator.list.save staticfloat-ubuntu-juliareleases-xenial.list webupd8team-ubuntu-java-xenial.list.save
google-chrome.list.save libdvdcss.list staticfloat-ubuntu-juliareleases-xenial.list.
答案1
这看起来像问题:
deb-src http://55.archive.ubuntu.com/ubuntu/ xenial-updates
您缺少此行的组件部分,它应如下所示:
deb-src http://55.archive.ubuntu.com/ubuntu/ xenial-updates main universe
您的 sources.list 缺少许多重要部分,包括安全更新,我建议您不要/etc/apt/sources.list
管它们,而将自定义内容放在 .list 文件中,/etc/apt/sources.list.d/
这样您就不会破坏默认文件。
也可以看看:
答案2
尝试执行 apt-get update 看看是否有帮助。如果没有帮助,请使用 vim/vi 访问文件并转到提示符(ESC 和 :),然后键入:'set number' 以查看行数。检查第 11 行是否有问题。您可以尝试注释此行并再次运行 apt-get update 看看是否有帮助。