EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #05994


< 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


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.