Bug#568566: dpkg: xemacs will not install after upgrade

2010-02-17 Thread Guillem Jover
retitle 568566 dpkg: Versioned Replaces do not work when downgrading
thanks

Hi!

On Sat, 2010-02-06 at 12:53:09 -0800, William Estrada wrote:
 1.
 dpkg -l base-files
 Desired=Unknown/Install/Remove/Purge/Hold
 | 
 Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
 |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
 ||/ Name   VersionDescription
 +++-==-==-
 ii  base-files 5.0.0  Debian base system miscellaneous files

Ok, after checking around found out this version and all 5.0.x actually
contains the origin files, so this is from testing and not stable.

 2. Tried to install the latest Xemacs and got this:

Try downgrading base-files and dpkg to the version in stable, after
that you should be able to install xemacs21.

You shoudl be able to do so with something like:

  # apt-get install base-files=5lenny5 dpkg=1.14.28
  # apt-get install xemacs21

 Then this:
 # aptitude install xemacs22

This packages does not actually exist.

 Guillem Jover wrote:
  On Fri, 2010-02-05 at 13:31:30 -0800, william estrada wrote:
   Writing extended state information... Done
   dpkg: warning: downgrading dpkg from 1.15.5.6 to 1.14.28.
   (Reading database ... 157978 files and directories currently installed.)
   Preparing to replace dpkg 1.15.5.6 (using 
   .../archives/dpkg_1.14.28_i386.deb) ...
   Unpacking replacement dpkg ...
   dpkg: error processing /var/cache/apt/archives/dpkg_1.14.28_i386.deb 
   (--unpack):
 trying to overwrite '/etc/dpkg/origins/debian', which is also in 
   package base-files 0:5.0.0
 
  ... this seems very strance as base-files 5.0.0 should not be shipping
  /etc/dpkg/origins/debian at all. Could you check in your logs [0] if you
  have upgraded base-files recently? Also output from 'dpkg -l base-files'
  would be useful.

So as I've said above, base-files is fine, and it has a versioned
Replaces, which does not work in this case. I found the broken
code yesterday and have a patch, but want to test it first, and will
be producing some test cases for the functional test suite as well.

thanks,
guillem



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#568566: dpkg: xemacs will not install after upgrade

2010-02-06 Thread Guillem Jover
Hi!

On Fri, 2010-02-05 at 13:31:30 -0800, william estrada wrote:
 Package: dpkg
 Version: 1.15.5.6
 Severity: normal

 -- System Information:
 Debian Release: squeeze/sid
   APT prefers testing
   APT policy: (500, 'testing'), (500, 'stable')
 Architecture: i386 (i686)

 hplaptop:~# aptitude install xemacs21
[...]
 The following packages are BROKEN:
   dpkg 
 The following NEW packages will be installed:
   xemacs21 xemacs21-bin{a} xemacs21-mule{a} xemacs21-support{a} 
 0 packages upgraded, 4 newly installed, 0 to remove and 40 not upgraded.
 Need to get 0B/7,129kB of archives. After unpacking 19.7MB will be used.
 The following packages have unmet dependencies:
   dpkg: Breaks: xemacs21-support ( 21.4.22-2) but 21.4.21-4 is to be 
 installed.
 The following actions will resolve these dependencies:

That's due to the install-info transition, you should upgrade xemacs21
to a version = 21.4.22-2.

 Downgrade the following packages:
 dpkg [1.15.5.6 (testing, now) - 1.14.28 (stable)]
 
 Score is 80
 
 Accept this solution? [Y/n/q/?] y
 The following packages will be DOWNGRADED:
   dpkg 
 The following NEW packages will be installed:
   xemacs21 xemacs21-bin{a} xemacs21-mule{a} xemacs21-support{a} 
 0 packages upgraded, 4 newly installed, 1 downgraded, 0 to remove and 40 not 
 upgraded.
 Need to get 0B/9,482kB of archives. After unpacking 20.4MB will be used.
 Do you want to continue? [Y/n/?] 

And downgrades are not usually supported, but ...

 Writing extended state information... Done
 dpkg: warning: downgrading dpkg from 1.15.5.6 to 1.14.28.
 (Reading database ... 157978 files and directories currently installed.)
 Preparing to replace dpkg 1.15.5.6 (using .../archives/dpkg_1.14.28_i386.deb) 
 ...
 Unpacking replacement dpkg ...
 dpkg: error processing /var/cache/apt/archives/dpkg_1.14.28_i386.deb 
 (--unpack):
  trying to overwrite '/etc/dpkg/origins/debian', which is also in package 
 base-files 0:5.0.0

... this seems very strance as base-files 5.0.0 should not be shipping
/etc/dpkg/origins/debian at all. Could you check in your logs [0] if you
have upgraded base-files recently? Also output from 'dpkg -l base-files'
would be useful.

[0] /var/log/dpkg.log* and /var/log/aptitude*

regards,
guillem



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#568566: dpkg: xemacs will not install after upgrade

2010-02-06 Thread William Estrada

Gulillem,

  Thanks for the response. I am new to Debian and all of this is very
confusing to me.

1.

dpkg -l base-files
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-
ii  base-files 5.0.0  Debian base system miscellaneous files


2. Tried to install the latest Xemacs and got this:


# aptitude show xemacs2? | grep Pack
Package: xemacs21-support
Package: xemacs21-gnome-mule
Package: xemacs-support
Package: xemacs21-gnome-nomule
Package: xemacs21-bin
Package: xemacs21-gnome-mule-canna-wnn
Package: xemacs21-supportel
Package: xemacs21-mulesupport-el
Package: xemacs21
Package: xemacs22
Package: xemacs21-basesupport
Package: xemacs21-mule
Package: xemacs21-mule-canna-wnn
Package: xemacs22-bin
Package: xemacs21-mulesupport
Package: xemacs21-basesupport-el
Package: xemacs-widget
Package: xemacs21-nomule
Package: xemacs
hplaptop:~# aptitude show xemacs | grep Pack
Package: xemacs
hplaptop:~# aptitude install xemacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No candidate version found for xemacs
No candidate version found for xemacs
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done



Then this:

# aptitude install xemacs22
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No candidate version found for xemacs22
No candidate version found for xemacs22
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done


Hope this helps?  Really don't want to install from source.



Guillem Jover wrote:

Hi!

On Fri, 2010-02-05 at 13:31:30 -0800, william estrada wrote:

Package: dpkg
Version: 1.15.5.6
Severity: normal



-- System Information:
Debian Release: squeeze/sid
   APT prefers testing
   APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)



hplaptop:~# aptitude install xemacs21

[...]

The following packages are BROKEN:
   dpkg
The following NEW packages will be installed:
   xemacs21 xemacs21-bin{a} xemacs21-mule{a} xemacs21-support{a}
0 packages upgraded, 4 newly installed, 0 to remove and 40 not upgraded.
Need to get 0B/7,129kB of archives. After unpacking 19.7MB will be used.
The following packages have unmet dependencies:
   dpkg: Breaks: xemacs21-support (  21.4.22-2) but 21.4.21-4 is to be 
installed.
The following actions will resolve these dependencies:


That's due to the install-info transition, you should upgrade xemacs21
to a version= 21.4.22-2.


Downgrade the following packages:
dpkg [1.15.5.6 (testing, now) -  1.14.28 (stable)]

Score is 80

Accept this solution? [Y/n/q/?] y
The following packages will be DOWNGRADED:
   dpkg
The following NEW packages will be installed:
   xemacs21 xemacs21-bin{a} xemacs21-mule{a} xemacs21-support{a}
0 packages upgraded, 4 newly installed, 1 downgraded, 0 to remove and 40 not 
upgraded.
Need to get 0B/9,482kB of archives. After unpacking 20.4MB will be used.
Do you want to continue? [Y/n/?]


And downgrades are not usually supported, but ...


Writing extended state information... Done
dpkg: warning: downgrading dpkg from 1.15.5.6 to 1.14.28.
(Reading database ... 157978 files and directories currently installed.)
Preparing to replace dpkg 1.15.5.6 (using .../archives/dpkg_1.14.28_i386.deb) 
...
Unpacking replacement dpkg ...
dpkg: error processing /var/cache/apt/archives/dpkg_1.14.28_i386.deb (--unpack):
  trying to overwrite '/etc/dpkg/origins/debian', which is also in package 
base-files 0:5.0.0


... this seems very strance as base-files 5.0.0 should not be shipping
/etc/dpkg/origins/debian at all. Could you check in your logs [0] if you
have upgraded base-files recently? Also output from 'dpkg -l base-files'
would be useful.

[0] /var/log/dpkg.log* and /var/log/aptitude*

regards,
guillem




--
William Estrada
Mt Umunhum, CA, USA
HTTP://64.124.13.3 ( 

Bug#568566: dpkg: xemacs will not install after upgrade

2010-02-05 Thread william estrada
Package: dpkg
Version: 1.15.5.6
Severity: normal



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils 7.4-2  The GNU core utilities
ii  libc6 2.10.2-2   GNU C Library: Shared libraries
ii  lzma  4.43-14Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt   0.7.25 Advanced front-end for dpkg

-- no debconf information
hplaptop:~# aptitude install xemacs21
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Reading extended state information  
Initializing package states... Done
Reading task descriptions... Done  
The following packages are BROKEN:
  dpkg 
The following NEW packages will be installed:
  xemacs21 xemacs21-bin{a} xemacs21-mule{a} xemacs21-support{a} 
0 packages upgraded, 4 newly installed, 0 to remove and 40 not upgraded.
Need to get 0B/7,129kB of archives. After unpacking 19.7MB will be used.
The following packages have unmet dependencies:
  dpkg: Breaks: xemacs21-support ( 21.4.22-2) but 21.4.21-4 is to be installed.
The following actions will resolve these dependencies:

Downgrade the following packages:
dpkg [1.15.5.6 (testing, now) - 1.14.28 (stable)]

Score is 80

Accept this solution? [Y/n/q/?] y
The following packages will be DOWNGRADED:
  dpkg 
The following NEW packages will be installed:
  xemacs21 xemacs21-bin{a} xemacs21-mule{a} xemacs21-support{a} 
0 packages upgraded, 4 newly installed, 1 downgraded, 0 to remove and 40 not 
upgraded.
Need to get 0B/9,482kB of archives. After unpacking 20.4MB will be used.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
dpkg: warning: downgrading dpkg from 1.15.5.6 to 1.14.28.
(Reading database ... 157978 files and directories currently installed.)
Preparing to replace dpkg 1.15.5.6 (using .../archives/dpkg_1.14.28_i386.deb) 
...
Unpacking replacement dpkg ...
dpkg: error processing /var/cache/apt/archives/dpkg_1.14.28_i386.deb (--unpack):
 trying to overwrite '/etc/dpkg/origins/debian', which is also in package 
base-files 0:5.0.0
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/dpkg_1.14.28_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done 
Building dependency tree   
Reading state information... Done
Reading extended state information   
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org