Debian

如何擺脫 PPA?

  • September 2, 2018

每當我執​​行“sudo apt update”時,我最終都會得到:

W: Failed to fetch http://ppa.launchpad.net/developmentseed/mapbox/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found

我試過的:


  • developmentseed-mapbox-jessie.list從中刪除文件/etc/apt/sources.list.d
  • 將文件中的所有內容替換 /etc/apt/sources.list為:

deb http://deb.debian.org/debian/ oldstable main contrib 非免費 deb-src http://deb.debian.org/debian/ oldstable main contrib 非免費

deb http://deb.debian.org/debian/ oldstable-updates main contrib 非免費 deb-src http://deb.debian.org/debian/ oldstable-updates main contrib 非免費

deb http://deb.debian.org/debian-security oldstable/updates main deb-src http://deb.debian.org/debian-security oldstable/updates main

deb http://ftp.debian.org/debian jessie-backports main deb-src http://ftp.debian.org/debian jessie-backports main

  • 執行sudo apt update並收到相同的愚蠢消息,並且文件 developmentseed-mapbox-jessie.list剛剛重新出現 /etc/apt/sources.list.d

  • 執行sudo add-apt-repository --remove ppa:developmentseed/mapbox

執行此命令我被問到你確定要刪除它嗎?答案當然是yes

  • 執行sudo apt update並得到相同的初始錯誤

那麼究竟如何擺脫這個錯誤呢?

補充筆記:

  • 的輸出grep ^ /etc/apt/sources.list.d/*是:

deb http://ppa.launchpad.net/developmentseed/mapbox/ubuntu jessie main

deb-src http://ppa.launchpad.net/developmentseed/mapbox/ubuntu jessie main

網址無效。

ppa:developmentseed/mapbox可以在這裡找到可能的代號

要解決此問題,您應該手動刪除下的文件/etc/apt/sources.list.d

# rm /etc/apt/sources.list.d/*
# apt update

要安裝tilemill,請nodejs按照安裝指南進行安裝。

$ sudo apt install build-essential git curl
$ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
$ sudo apt-get install -y nodejs
$ git clone https://github.com/tilemill-project/tilemill.git
$ cd tilemill
$ npm install
$ npm install sqlite3
$ ./index.js --server=true

然後localhost:20009在您的網路瀏覽器中輸入。

引用自:https://unix.stackexchange.com/questions/464698