Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: terroreek on 2014/08/18, 05:09:42

Title: Keys on reference message during update
Post by: terroreek 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.


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 (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.
Title: Re: Keys on reference message during update
Post by: sunrat 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
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.
Title: Re: Keys on reference message during update
Post by: drb on 2014/08/18, 10:17:04
I only use apt-get and have just got the error
Title: Re: Keys on reference message during update
Post by: sunrat 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.
Title: Re: Keys on reference message during update
Post by: towo on 2014/08/18, 14:39:58
You could patch apt-show-versions with this diff, then the message is gone.
--- 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);
         }
     }
Title: Re: Keys on reference message during update
Post by: tuxic 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 (http://jungels.net/articles/diff-patch-ten-minutes.html)
Title: Re: Keys on reference message during update
Post by: vayu 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


# cd /usr/bin
# patch apt-show-versions < ~/apt-show-patch
Title: Re: Keys on reference message during update
Post by: terroreek on 2014/09/02, 18:10:41
The updated apt-show-versions was pushed out last week.  You shouldn't have to patch it.
Title: Re: Keys on reference message during update
Post by: vayu on 2014/09/02, 18:26:05
Quote from: terroreek on 2014/09/02, 18:10:41
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.