f



Error: Unable to locate package perl-doc

How do I fix the following issue?
% sudo apt-get install perl-doc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package perl-doc
0
An
11/28/2016 2:10:16 PM
comp.lang.perl.misc 33233 articles. 2 followers. brian (1246) is leader. Post Follow

6 Replies
350 Views

Similar Articles

[PageSpeed] 46

An Luutran <ltf4an@gmail.com> writes:
> How do I fix the following issue?
> % sudo apt-get install perl-doc
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> E: Unable to locate package perl-doc

Assuming you repository list is correct, this usually means that the
locally cached repository content information is out of sync with the
state on the server(s).

apt-get update

should fix that.

This doesn't really belong here.

0
Rainer
11/28/2016 4:10:52 PM
On Monday, November 28, 2016 at 11:10:57 AM UTC-5, Rainer Weikusat wrote:
> An Luutran <ltf4an@gmail.com> writes:
> > How do I fix the following issue?
> > % sudo apt-get install perl-doc
> > Reading package lists... Done
> > Building dependency tree       
> > Reading state information... Done
> > E: Unable to locate package perl-doc
> 
> Assuming you repository list is correct, this usually means that the
> locally cached repository content information is out of sync with the
> state on the server(s).
> 
> apt-get update
> 
> should fix that.
> 
> This doesn't really belong here.

I tried 'apt-get update' but the problem is not fixed. 

Would you please suggest a better group to post this kind of questions, if you now? 
0
An
11/28/2016 4:28:39 PM
An Luutran <ltf4an@gmail.com> wrote:
>> An Luutran <ltf4an@gmail.com> writes:
>> > How do I fix the following issue?
>> > % sudo apt-get install perl-doc
>> > Reading package lists... Done
>> > Building dependency tree       
>> > Reading state information... Done
>> > E: Unable to locate package perl-doc

>Would you please suggest a better group to post this kind of questions, if you now? 

It appears the package installer of whatever OS you are using is not
working as expected.
I would take this to a NG that is dealing with whatever OS you are using
or which is dealing with that specific package installer (you didn't say
which OS you are using).

jue
0
J
11/28/2016 5:23:02 PM
> E: Unable to locate package perl-doc
>

assuming you have 16.04.1


curl -O 
http://gr.archive.ubuntu.com/ubuntu/pool/main/p/perl/perldoc_5.22.1-9_all.deb
dpkg -i perl-doc_5.22.1-9_all.deb
0
George
11/28/2016 6:06:31 PM
An Luutran <ltf4an@gmail.com> writes:
> On Monday, November 28, 2016 at 11:10:57 AM UTC-5, Rainer Weikusat wrote:
>> An Luutran <ltf4an@gmail.com> writes:
>> > How do I fix the following issue?
>> > % sudo apt-get install perl-doc
>> > Reading package lists... Done
>> > Building dependency tree       
>> > Reading state information... Done
>> > E: Unable to locate package perl-doc
>> 
>> Assuming you repository list is correct, this usually means that the
>> locally cached repository content information is out of sync with the
>> state on the server(s).
>> 
>> apt-get update
>> 
>> should fix that.
>> 
>> This doesn't really belong here.
>
> I tried 'apt-get update' but the problem is not fixed. 

apt-cache show perl-doc

should produce the recorded meta-information for this package, example
(Debian 7)

Package: perl-doc
Source: perl
Version: 5.14.2-21+deb7u3
Installed-Size: 12902
Maintainer: Niko Tyni <ntyni@debian.org>
Architecture: all
Depends: perl (>= 5.14.2-1)
Suggests: man-browser, groff
Description-en: Perl documentation
 Perl manual pages, POD documentation and the `perldoc' program.  If you are
 writing Perl programs, you almost certainly need this.
Homepage: http://dev.perl.org/perl5/
Description-md5: 6cd25412f32c953589ef8fcaf1f5f46d
Tag: devel::doc, devel::lang:perl, implemented-in::perl, role::documentation
Section: doc
Priority: optional
Filename: pool/main/p/perl/perl-doc_5.14.2-21+deb7u3_all.deb
Size: 8166438
MD5sum: 98746aba838c20c5b6d8c5636dc764bd
SHA1: 0c6f259a74e975a09b42396a395c6791c0a4ff5e
SHA256: ed75879af710019b9c9a6216e97920e7bac4484f8a2409c887f64866c6172255

The Filename: is relative to the repository directory from sources
list. In my case, the relevant line is

deb http://http.debian.net/debian/ wheezy main contrib non-free

If everythings ok, it should be possible to download the file from the
URL formed by concatenating the filename value from the apt-cache output
with the second column of the sources list entry, eg,

http://http.debian.net/debian/pool/main/p/perl/perl-doc_5.14.2-21+deb7u3_all.deb

(I've tested this works for me)
0
Rainer
11/28/2016 7:10:05 PM
On Monday, 28 November 2016 14:10:25 UTC, An Luutran  wrote:
> How do I fix the following issue?
> % sudo apt-get install perl-doc
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> E: Unable to locate package perl-doc

My results locally on Ubuntu 16.04

apt-cache show perl-doc                                                                                                                   
Package: perl-doc
Priority: optional
Section: doc
Installed-Size: 13741
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Niko Tyni <ntyni@debian.org>
Architecture: all
Source: perl
Version: 5.22.1-9
Depends: perl (>= 5.22.1-1)
Suggests: man-browser, groff-base
Filename: pool/main/p/perl/perl-doc_5.22.1-9_all.deb
Size: 7394904
MD5sum: 83ca9ec7a4a27cc293c02a8e41e0cdd2
SHA1: 470309b2a5a3afb4cb4bd4037f0368a247c7a079
SHA256: cd7e08e57d8680fde818aecd5d3be9bc7c07d8e8d62687978444e9959fa72147
Description-en: Perl documentation
 Perl manual pages, POD documentation and the `perldoc' program.  If you are
 writing Perl programs, you almost certainly need this.
Description-md5: 6cd25412f32c953589ef8fcaf1f5f46d
Homepage: http://dev.perl.org/perl5/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y

To quote:

This is not a Perl problem

It's a package management problem.  
The package is in main so you might need to check your sources.list is correct.
You're using a Debian-based system so you might want to check mailing lists, newsgroups, chat rooms or forums for whatever actual flavour you're running.  For example, https://www.debian.org/support lists various sources of help.

Kind regards

Lesley


0
Lesley
11/29/2016 12:14:44 PM
Reply: