EPrints Technical Mailing List Archive

Message: #06168


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Problem with installing on Ubuntu


Hi Andrew,

I haven't tried installing this - but looking at the error, a line in /var/lib/dpkg/info/eprints.postinst

It trying to enable the site in the apache config.

 

Where is apache located on the server?

The error 'cannot create /etc/apache2/sites-available/eprints: Directory nonexistant' is the key -

If Apache isn't installed already, maybe install that first?

 

HTH,

John

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 18 January 2017 09:23
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] FW: Problem with installing on Ubuntu

 

Any thoughts on this, folks?

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 16 January 2017 11:03
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Problem with installing on Ubuntu

 

Hello all!

 

This is an old thread to be dredging up, but installing a fresh copy of EPrints under Ubuntu has found new and interesting ways to infuriate me!

 

After Christer’s last email I think I got a working install going however as it had been so long since I’d last looked at it I decided to tear down my virtual machine and start fresh, documenting the process as I went. I’ve hit another brick wall!

 

While the installation process starts fine it throws a new error during install. I’ve taken a screenshot which you can see here: https://goo.gl/photos/GDpa5HnP5y6CzLoR6 and actually generates a system error. Has anyone else encountered this?

 

Andrew

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Christer Enkvist
Sent: 11 October 2016 13:20
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Problem with installing on Ubuntu

 

Sorry, noticed I skipped a crucial step in the description!

 

The command “equivs-control apache2-mpm-prefork” simply creates the file apache2-mpm-prefork which is a file describing what to install (or more correctly fake an install of). 

 

Perhaps you need to edit this file ( I did) ,

 

Replace

Package: <package name; defaults to equivs-dummy>

 

With

Package: apache2-mpm-prefork

 

Now you can build a debian package:

 

equivs-build apache2-mpm-prefork

 

And finally install it:

 

install” apache2-mpm-prefork

 

Complete description should be:

 

apt-get install libapache2-mod-php

apt-get install -y equivs

equivs-control apache2-mpm-prefork

Edit the file apache2-mpm-prefork, replace “Package: <package name; defaults to equivs-dummy>“ with “Package: apache2-mpm-prefork”

equivs-build apache2-mpm-prefork

dpkg -i apache2-mpm-prefork_1.0_all.deb

 

Please let me know if you encounter any problems!

 

/Christer

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: den 10 oktober 2016 17:18
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Problem with installing on Ubuntu

 

Thanks for the response, Christer. I’m falling over in the first stage at the dpkg command:

 

dpkg: error processing archive apache2-mpm-prefork_1.0_all.deb (--install):

cannot access archive: No such file or directory

Errors were encountered while processing:

apache2-mpm-prefork_1.0_all.deb

 

Now everything seems to work fine up until then, however the command

 

equivs-control apache2-mpm-prefork

 

Doesn’t give me any output; I don’t know if I’ve missed something in here?

 

Andrew

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Christer Enkvist
Sent: 10 October 2016 09:24
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Problem with installing on Ubuntu

 

Hi,

 

Posted a workaround on this topic a few weeks back.  In Summary:

 

First, create fake entry for apache2-mpm-prefork (required by eprints.deb) and install a MPM fork for apache:

 

apt-get install libapache2-mod-php

apt-get install -y equivs

equivs-control apache2-mpm-prefork

dpkg -i apache2-mpm-prefork_1.0_all.deb

 

Now you can download and install without problem.

 

Secondly, a bug/new feature in Perls URI module forces either an update of the URI module or a simple edit of the file /usr/share/eprints3/perl_lib/URI/Escape.pm.

 

A patch has been posted by Denis Pitzalis, see https://github.com/eprints/eprints/pull/416 or manually change the file /usr/share/eprints3/perl_lib/URI/Escape.pm.:

 

Replace line 205

return join '', @URI::Escape::escapes{$[0] =~ /(\C)/g};

 

with the following:

if (utf8::isutf8($[0])) {

my $s = $[0];

utf8::encode($s);

unshift(@, $s);

}

return join '', @URI::Escape::escapes{$_[0] =~ /(.)/sg};

}

 

Now Eprints should work.

 

Regards

Christer

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: den 7 oktober 2016 11:12
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Problem with installing on Ubuntu

 

Hi all,

 

Having a problem getting EPrints to install on a new VBox. Have added the Deb entry to sources.list as

 

deb http://deb.eprints.org/ stable/

deb-src http://deb.eprints.org/ source/

 

(Don’t know if the last line is needed)

 

So, running sudo apt-get update gives me:

 

W: The repository 'http://deb.eprints.org stable/ 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://deb.eprints.org source/ 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.

 

Which I’m not used to seeing. I tried running an install anyway and got:

 

Reading package lists... Done

Building dependency tree      

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies.

eprints : PreDepends: apache2-mpm-prefork but it is not installable

E: Unable to correct problems, you have held broken packages.

 

Running a VBox with the latest release of Ubuntu (16.04.1). Any thoughts?


The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.


The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://lincoln.ac.uk/legal.