in Linux

Fix bad entry of sources list for Peppermint OS 5

Just quick post for myself. Today I need to give sample to my student about apt-get command and while I try it I got this error :

Err http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found

Err http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Yes. That error mean the address is not found. Might be the address changed or something else.

As I use Peppemint OS 5. I found that source.list is no longer packed in single file but located in directory.

$ ls -l /etc/apt/sources.list.d/
total 44
-rw-r–r– 1 root root 146 Mar 2 13:27 jerzy-kozera-zeal-ppa-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list.save
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list.save
-rw-r–r– 1 root root 150 Mar 2 13:27 openshot_developers-ppa-trusty.list
-rw-r–r– 1 root root 150 Mar 2 13:27 openshot_developers-ppa-trusty.list.save
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list.save
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list.save

$ cat /etc/apt/sources.list.d/openshot_developers-ppa-trusty.list
deb http://ppa.launchpad.net/openshot.developers/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/openshot.developers/ppa/ubuntu trusty main

Remove the file

$ sudo rm /etc/apt/sources.list.d/openshot_developers-ppa-trusty.*
[sudo] password for alamsyah:

Recheck it
$ ls -l /etc/apt/sources.list.d/
total 36
-rw-r–r– 1 root root 146 Mar 2 13:27 jerzy-kozera-zeal-ppa-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list
-rw-r–r– 1 root root 172 Mar 2 13:27 maarten-baert-simplescreenrecorder-trusty.list.save
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list
-rw-r–r– 1 root root 142 Mar 2 13:27 mc3man-trusty-media-trusty.list.save
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list
-rw-r–r– 1 root root 144 Mar 2 13:27 peppermint.list.save
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list
-rw-r–r– 1 root root 132 Mar 2 13:27 phalcon-stable-trusty.list.save

Re run apt-get

$ sudo apt-get update

this time no error message.

How about openshot ?

Well, I try re add the source :

$ sudo add-apt-repository ppa:openshot.developers/ppa
This PPA contains the current stable version of OpenShot Video Editor.

If you would rather the bleeding-edge version, check out the following URL:
https://launchpad.net/~jonoomph/+archive/openshot-edge
More info: https://launchpad.net/~openshot.developers/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp8sj5wgdh/secring.gpg’ created
gpg: keyring `/tmp/tmp8sj5wgdh/pubring.gpg’ created
gpg: requesting key B9BA26FA from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp8sj5wgdh/trustdb.gpg: trustdb created
gpg: key B9BA26FA: public key “Launchpad OpenShot Development PPA” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

$ sudo apt-get update

……………….

…………………….

Fetched 785 kB in 41s (19,0 kB/s)
W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Well, I think its openshot repository problem. I skip install this 🙂