emdebian-tools.postinst

Bug #121369 reported by JotaCapa
8
Affects Status Importance Assigned to Milestone
emdebian-tools (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: emdebian-tools

Bug:

A instalar emdebian-tools (0.2.0) ...

Unable to determine apt-cache policy for Debian main! at /var/lib/dpkg/info/emdebian-tools.postinst line 132.
dpkg: erro processando emdebian-tools (--configure):
subprocesso post-installation script retornou erro do status de saída 255

<email address hidden>

Revision history for this message
JotaCapa (jose-azevedo2) wrote :

I tried several ways to identify the problem, but my knowledge is more psychology than programming.

However, the system is making the updates and gradually is upgrading.
Some programs doesn't work yet, but I think that in next month The Gutsy is here.

Sincerely yours

José Azevedo
<email address hidden>
<email address hidden>

Revision history for this message
JotaCapa (jose-azevedo2) wrote :

The last update:
A instalar emdebian-tools (0.2.0) ...

Unable to determine apt-cache policy for Debian main! at /var/lib/dpkg/info/emdebian-tools.postinst line 132.
dpkg: erro processando emdebian-tools (--configure):
subprocesso post-installation script retornou erro do status de saída 255

Revision history for this message
Martin Pitt (pitti) wrote :

This is a bug in emdebian-tools' postinst script. It is not security related at all, it just means that the package is not installable.

Revision history for this message
Gerard Lledo (glledo) wrote :

I solved the problem adding a debian repository to my sources.list, although maybe you don't want to do that.

Revision history for this message
Jieter (jpwaag) wrote :

I can confirm this one on Gutsy Gibbon.

root@satraap:/home/jieter# apt-get install emdebian-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
emdebian-tools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up emdebian-tools (0.2.0) ...
Unable to determine apt-cache policy for Debian main! at /var/lib/dpkg/info/emdebian-tools.postinst line 132.
dpkg: error processing emdebian-tools (--configure):
 subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
 emdebian-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
jeanseb (jeanseb-valette) wrote :

I've slove the probleme by hacking scriptt in an ugly way.
----------
for /var/lib/dpkg/info/emdebian-tools.postinst
change line 123 like this
  && /^\s+release v=7.10,o=Ubuntu,a=(\w+),l=Ubuntu,c=main\s*$/) {
and line 134 add
$suite = "unstable";

----------

and for /usr/share/perl5/Emdebian/Tools.pm
line 265
replace en get_suite like this :
sub get_suite()
{
        # list of suites supported by Emdebian toolchain repository.
        my @suites = qw/unstable testing stable sid etch/;
# hack for ubuntu user
# my $policy = `apt-cache policy 2>/dev/null | grep "l=Debian,c=main"`;
# croak ("Unable to determine apt-cache policy: $!") if (!$policy);
# $policy =~ /o=Debian,a=([a-z]*),l=Debian,c=main/;
# my $suite = $1;
        my $suite = "unstable";
        foreach my $s (@suites)
        {
                # check the matched value is sensible.
                return $s if ($suite eq $s);
        }
        $suite = &check_dist if ($suite eq "");
        return $suite;
}

Revision history for this message
Sylvain Nahas (myself-sylvain-nahas) wrote :

I confirm this is a problem.

The hack given below seems to work ( at least post-install finishes correctly )

For me the importance of this bug is should be HIGH, since it breaks apt.

Changed in emdebian-tools:
status: New → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Please see.

Changed in emdebian-tools:
status: Confirmed → Won't Fix
Revision history for this message
Justin Dugger (jldugger) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.