Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing on Ubuntu 16.04 using some PPAs #118

Closed
adamlove86 opened this issue Dec 12, 2016 · 4 comments
Closed

Installing on Ubuntu 16.04 using some PPAs #118

adamlove86 opened this issue Dec 12, 2016 · 4 comments

Comments

@adamlove86
Copy link

Am running a Dreamcompute 16.04 image attempting to install:

Thanks for your help!

attempt 1:
apt-get install ocrmypdf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ocrmypdf

alternative:
ubuntu@snappy-nextcloud:~$ sudo add-apt-repository ppa:vshn/ghostscript -y
(key info)
OK

ubuntu@snappy-nextcloud:~$ sudo add-apt-repository ppa:heyarje/libav-11 -y
(key info)
OK

ubuntu@snappy-nextcloud:~$ sudo apt-get update
Ign:1 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://iad-2.clouds.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://iad-2.clouds.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://iad-2.clouds.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:6 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial InRelease
Ign:7 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial Release
Ign:8 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial Release
Ign:9 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main all Packages
Ign:11 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en_US
Ign:12 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en
Ign:13 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en
Ign:9 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main all Packages
Ign:11 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en_US
Ign:12 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en
Ign:13 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en
Ign:9 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main all Packages
Ign:11 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en_US
Ign:12 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en
Ign:13 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en
Ign:9 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main all Packages
Ign:11 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en_US
Ign:12 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en
Ign:13 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en
Ign:9 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main all Packages
Ign:11 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en_US
Ign:12 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en
Ign:13 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en
Err:9 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:10 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main all Packages
Ign:11 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en_US
Ign:12 http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial/main Translation-en
Err:13 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:14 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial/main Translation-en
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/heyarje/libav-11/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/vshn/ghostscript/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/heyarje/libav-11/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/vshn/ghostscript/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

ubuntu@snappy-nextcloud:~$ sudo apt-get install \

zlib1g-dev
libjpeg-dev
libffi-dev
libavformat56 libavcodec56 libavutil54
ghostscript
tesseract-ocr
qpdf
python3-pip
python3-pil
python3-pytest
python3-reportlab
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libavformat56
E: Unable to locate package libavcodec56
E: Unable to locate package libavutil54

@jbarlow83
Copy link
Collaborator

jbarlow83 commented Dec 12, 2016 via email

@jbarlow83 jbarlow83 changed the title 404 - vshn and heyarje repositories Installing on Ubuntu 16.04 using some PPAs Dec 12, 2016
@jbarlow83
Copy link
Collaborator

I updated the installation instructions with steps for Ubuntu 16.04. I have tested them on a fresh Docker image of Ubuntu 16.04. Please try the new steps and re-open this issue if you have any trouble.

https://ocrmypdf.readthedocs.io/en/latest/installation.html

@ohsevin
Copy link

ohsevin commented Sep 23, 2018

Just got the source .list file for the libav PPA in your /etc/apt/sources.list.d/ directory and using $nano just edit the deb / deb-src lines to use "trusty" in place of the "your ubuntu dist" / "xenial" etc.

P.S. if you don't know what your system is go to terminal and run;
uname -a
this will give you a liner of your systems spec

then more importantly though, if you don't know which release of ubuntu you are on, then you can run;
lsb_release
if this shows nothing or an error such as "no LSB release" etc then just yank out the damn distro;
sudo nano /etc/lsb-release
take note of the release version number i.e. 14.04,16.04,18.04 etc. and specifically, the name of your dist.

I have done this in the past sucessfully but be forewarned here... this is placing your system in danger of breaking (technically). You just don't usually mix dist types of PPA's on a system... leads to bad conflicts--as a rule of thumb. Since I am familiar with this exact repository and what it contains, I am confident in suggesting your "testing" of my provided suggested course of action(s). =]

email me at artik@cock.li if you need further help
[that is a very real and very mine--email address, don't worry] lolpce

@jbarlow83
Copy link
Collaborator

@ninetyfivenorth This is quite an old issue, it's not current, and your instructions seem to be giving general advice about Ubuntu rather than ocrmypdf. I welcome contributions generally, but I am letting you know that I am removing your comment because I don't believe it will be helpful to any users. For one thing, I'm not entirely sure what your concern is. If you do have a specific comment on the installation instructions for ocrmypdf, please open a new issue and we can discuss them there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants