cccs-web / core

CCCS' customized django web application
4 stars 11 forks source link

Failed to fetch http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found #96

Closed cccs-ip closed 9 years ago

cccs-ip commented 9 years ago

Fresh install of Ubuntu, and I am hitting this error (which I also continue to get on my own machines):

ubuntu@ip-10-183-58-29:~$ sudo apt-add-repository ppa:ubuntugis/ppa
 Official stable UbuntuGIS packages.

 More info: https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpscj2kx45/secring.gpg' created
gpg: keyring `/tmp/tmpscj2kx45/pubring.gpg' created
gpg: requesting key 314DF160 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpscj2kx45/trustdb.gpg: trustdb created
gpg: key 314DF160: public key "Launchpad ubuntugis-stable" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
ubuntu@ip-10-183-58-29:~$ sudo apt-get update
Ign http://us-east-1.ec2.archive.ubuntu.com trusty InRelease
Ign http://us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease     
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release.gpg           
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates Release.gpg         
Ign http://security.ubuntu.com trusty-security InRelease                       
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release                     
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates Release   
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Sources                
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Sources  
Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B] 
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages
Ign http://ppa.launchpad.net trusty Release.gpg                      
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Sources
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Sources
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main amd64 Packages
Get:2 http://security.ubuntu.com trusty-security Release [59.7 kB]   
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Translation-en 
Ign http://ppa.launchpad.net trusty Release                                    
Hit http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Translation-en
Get:3 http://security.ubuntu.com trusty-security/main Sources [37.7 kB]        
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en_US      
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en         
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US  
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en     
Get:4 http://security.ubuntu.com trusty-security/universe Sources [10.3 kB]    
Get:5 http://security.ubuntu.com trusty-security/main amd64 Packages [121 kB]
Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [42.2 kB]
Hit http://security.ubuntu.com trusty-security/main Translation-en     
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Err http://ppa.launchpad.net trusty/main amd64 Packages
  404  Not Found
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Fetched 272 kB in 1s (176 kB/s)
W: Failed to fetch http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
cccs-ip commented 9 years ago

I was able to install the GIS packages in spite of this error... but I do continue to receive it. Should I be worried?

cccs-ip commented 9 years ago

I always get this. It doesn't affect my OS, but it's strange to continue to get this error. Any cause for alarm?

pwhipp commented 9 years ago

Have you manually edited /etc/apt/sources.list or one of the files under /etc/apt/sources.list.d?

It looks like that line is simply wrong - remove "deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages"

The problem should then go away.

If sudo apt-add-repository ppa:ubuntugis/ppa puts the line back, you're sorta screwed because ubuntugis is not supported in trusty. However, I used a meta package from the ubuntu repos to install postgis without any problems:

From my machine:

/etc/apt $ dpkg -l | grep -i postgis
ii  liblwgeom-2.1.2                                       2.1.2+dfsg-2                                        amd64        PostGIS "Lightweight Geometry" library
ii  postgis                                               2.1.2+dfsg-2                                        amd64        Geographic objects support for PostgreSQL
ii  postgresql-9.3-postgis-2.1                            2.1.2+dfsg-2                                        amd64        Geographic objects support for PostgreSQL 9.3
ii  postgresql-9.3-postgis-scripts                        2.1.2+dfsg-2                                        all          Geographic objects support for PostgreSQL 9.3 -- scripts

Once you have that broken repo link out the way, sudo apt-get install postgresql-9.3-postgis-2.1 should do the trick for you assuming those versions line up (use dpkg -l first to check).

cccs-ip commented 9 years ago

Thanks for this, Paul. sudo apt-add-repository ppa:ubuntugis/ppa does indeed put the line back. It's a shame this remains the case so long into the release. I wonder if GIS application development is occurring somewhere else?

When you say you " used a meta package from the ubuntu repos to install postgis", is that to say that without adding another ppa, you were able to run sudo apt-get install postgresql-9.3-postgis-2.1 to install posgis?

pwhipp commented 9 years ago

Correct. Sorry for my tardy reply.