我正在使用Ubuntu 16.04,但我根本不是计算机专业人员,并且我正试图解决自几个月以来一直存在的问题。我想安装新软件包对我来说是一个真正的问题。
3个月前,我在终端中进行了一些操作。我什至不记得我要做什么,但这与为我的一个应用程序实现数据库转储有关。
这是我运行的命令的历史,它毁了一切:
1072 sudo apt-get update
1073 deb http://ppa.launchpad.net/jonls/redshift-ppa/ubuntu 16.04 main
1074 sudo apt-get install redshift
1075 sudo apt install redshift
1076 sudo apt install redshift-gtk
1077 HiSuite
1078 sudo apt-get update
1079 sudo apt-get install fakeroot
1080 sudo apt-get build-essential
1081 deb http://de.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
1082 sudo apt-get build-essential
1083 sudo apt-get update
1084 sudo apt-get build-essential
1085 sudo vi /etc/apt/sources.list
1086 deb http://ftp.debian.org/debian wheezy main
1087 echo "deb http://ftp.debian.org/debian wheezy main" | sudo tee /etc/apt/sources.list.d/docker.list
1088 echo "deb deb-src http://ftp.debian.org/debian wheezy main" | sudo tee /etc/apt/sources.list.d/docker.list
1089 sudo apt-get update
1090 sudo apt-get build-essential
1091 echo "deb http://ftp.debian.org/debian wheezy main"
1092 echo "deb deb-src http://ftp.debian.org/debian wheezy main"
1093 sudo apt-get update
1094 apt-get
1095 sudo apt-get update
1096 cat -n /etc/apt/sources.list | grep "55"
1097 cat -n /etc/apt/sources.list
1098 lsb_release -c -s
1099 sudo rm /etc/apt/sources.list
1100 sudo -i software-properties-gtk
1101 sudo sed -i "s/xenial/$(lsb_release -c -s)/" /etc/apt/sources.list
1102 sudo -i software-properties-gtk
1103 sudo sed -i "s/xenial/$(lsb_release -c -s)/" /etc/apt/sources.list
1104 sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
1105 sudo apt-get install gksu
1106 sudo sed -i "s/xenial/$(lsb_release -c -s)/" /etc/apt/sources.list
1107 sudo rm /etc/apt/sources.list
1108 sudo sed -i "s/xenial/$(lsb_release -c -s)/" /etc/apt/sources.list
1109 sudo -i software-properties-gtk
1110 /etc/apt/
1111 ls
1112 source
1113 ..
1114 sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
1115 sudo gedit /etc/apt/sources.list
1116 ls
1117 cd home
1118 ls
1119 cd kenza
1120 ls
1121 sudo apt-get update
1122 cat -n /etc/apt/sources.list
1123 sudo -i software-properties-gtk
1124 sudo apt-get update
1125 ..
1126 /etc/apt/
1127 source
1128 sudo gedit /etc/apt/sources.list
1129 ..
1130 cd home/kenza
1131 sudo apt-get update
1132 apt-get
1133 sudo apt-get uprade
1134 /etc/apt/
1135 ls
1136 sudo gedit /etc/apt/sources.list.old
1137 sudo gedit /etc/apt/sources.list.save
1138 ..
1139 cd home/kenza
1140 curl https://repogen.simplylinux.ch/txt/xenial/sources_ae6942a4ca69e6ca95d89a755f6959aa12396478.txt | sudo tee /etc/apt/sources.list
1141 sudo apt-get update
1142 sudo gedit /etc/apt/sources.list
1143 sudo gedit /etc/apt/sources.list.d/docker.list
1144 sudo apt-get update
1145 sudo gedit /etc/apt/sources.list.d/docker.list
现在,每次我尝试运行apt-get
命令时,我都会得到以下结果:
E: Malformed entry 1 in list file /etc/apt/sources.list.d/docker.list (URI parse)
E: The list of sources could not be read.
目前,我需要安装libsqlite3-dev,这是不可能的。
非常感谢您的帮助!
答案 0 :(得分:0)
我在安装Bazel时遇到了同样的问题。 我发现这是因为在键入以下命令时我错过了空格
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
运行apt-get update
或apt-get upgrade
时,将读取/etc/apt/sources.list中枚举的源。它将显示您上面提到的错误。
希望这会有所帮助。
答案 1 :(得分:0)
我在 sudo apt update && sudo apt install -y bazel-1.2.1 之后使用