Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Keys on reference message during update  (Read 4302 times)

Offline terroreek

  • User
  • Posts: 202
Keys on reference message during update
« on: 2014/08/18, 05:09:42 »
Hi All,

Heads up it seems with the recent perl update when you do an apt-get update you will get this error at the end of the output.

Code: [Select]
keys on reference is experimental at /usr/bin/apt-show-versions line 264.
keys on reference is experimental at /usr/bin/apt-show-versions line 359.

The relevant bug report
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758287

its save to ignore, but apparently it may cause aptitude to appear to be be hung.

Offline sunrat

  • User
  • Posts: 406
Re: Keys on reference message during update
« Reply #1 on: 2014/08/18, 07:13:27 »
I just du which included new libperl5.20 with no such error. I du with apt-get, the bug report only mentions the problem is specifically with aptitude.

I do get this message with apt-show-versions
Code: [Select]
apt-show-versions > /dev/null
keys on reference is experimental at /usr/bin/apt-show-versions line 264.
keys on reference is experimental at /usr/bin/apt-show-versions line 359.

Offline drb

  • User
  • Posts: 165
Re: Keys on reference message during update
« Reply #2 on: 2014/08/18, 10:17:04 »
I only use apt-get and have just got the error

Offline sunrat

  • User
  • Posts: 406
Re: Keys on reference message during update
« Reply #3 on: 2014/08/18, 10:23:24 »
Apologies, I du last night and didn't notice the error and upgrade completed successfully. I just ran apt-get update and do have that message.

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.939
Re: Keys on reference message during update
« Reply #4 on: 2014/08/18, 14:39:58 »
You could patch apt-show-versions with this diff, then the message is gone.
Code: [Select]
--- apt-show-versions.orig      2014-08-18 14:38:10.791635143 +0200
+++ apt-show-versions   2014-08-18 14:36:10.753920168 +0200
@@ -261,7 +261,7 @@
         or $cache_file_corrupt) {
         my ($href, $release) = &parse_file ($_);
         foreach my $pkg (keys %$href) {
-            foreach my $arch (keys $href->{$pkg}) {
+            foreach my $arch (keys  %{ $href->{$pkg} }) {
                 $apackages->{$pkg}{$arch}{$release} = $href->{$pkg}{$arch};
             }
        }
@@ -356,7 +356,7 @@
             printf("%s not installed (not available)\n", $pkgname);
         }
     } else {
-        foreach my $arch ($archname or sort keys $pkgs->{$pkgname}) {
+        foreach my $arch ($archname or sort keys % {$pkgs->{$pkgname}}) {
             print_package_internal($pkgname, $arch);
         }
     }
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline tuxic

  • User
  • Posts: 117
Re: Keys on reference message during update
« Reply #5 on: 2014/08/20, 11:55:12 »
For a "noobie" like me a tutorial on applying patches from diff. If there's some guide easier than this, I'll really appreciate!


http://jungels.net/articles/diff-patch-ten-minutes.html
"Many people live and die..., and all they do is process groceries."
                  H. Peavey

Offline vayu

  • User
  • Posts: 232
Re: Keys on reference message during update
« Reply #6 on: 2014/09/02, 07:14:52 »
Save the patch from the post into a text file in your home directory and name it apt-show-patch

Code: [Select]
# cd /usr/bin
# patch apt-show-versions < ~/apt-show-patch

Offline terroreek

  • User
  • Posts: 202
Re: Keys on reference message during update
« Reply #7 on: 2014/09/02, 18:10:41 »
The updated apt-show-versions was pushed out last week.  You shouldn't have to patch it.

Offline vayu

  • User
  • Posts: 232
Re: Keys on reference message during update
« Reply #8 on: 2014/09/02, 18:26:05 »
The updated apt-show-versions was pushed out last week.  You shouldn't have to patch it.
Thanks. I can't du yet. I'm waiting for kmail2 to get caught up.