2016-11-06 44 views
0

我在drone.io上運行apt-get update命令時遇到問題。它有錯誤了:drone.io上的apt-get錯誤

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) 

W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/precise/main/source/Sources 404 Not Found 

W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found 

W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found 

下面是我在我的構建步驟:

sudo apt-get update 
sudo apt-get install -y zip xsltproc 
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb 
sudo dpkg -i erlang-solutions_1.0_all.deb 
sudo apt-get update 
sudo apt-get install esl-erlang 
sudo apt-get install elixir 
cd /home/ubuntu/src/github.com/lowks/Radpath 
rm -rf deps 
yes | mix deps.get --all 
mix deps.compile 
mix test 

我該如何解決這個問題?

回答

2

得到同樣的問題。看起來sudo apt-get update對於傳統的Ubuntu 12.04來說已經壞了。我

這一個工作,如果在更新之前稱爲 sudo rm /etc/apt/sources.list.d/google* sudo rm /etc/apt/sources.list.d/ondrej*

+0

謝謝!構建已修復。 –

+0

太糟糕了,那個drone.io停止了他們的服務。 – DelmeDelmi