[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multiarch interfaces: print foreign arches, pkgname I/O



On 2011-12-12 14:37 +0100, Raphael Hertzog wrote:

> On Mon, 12 Dec 2011, David Kalnischkies wrote:
>> In the end, we properly need a specialized tool for cross grades anyway:
>> Changing the architecture of any package basically requires the
>> removal of this package before it can be installed for the new architecture:
>> I e.g. can't think of a good way for APT to instruct dpkg to
>> remove itself and install itself again in a different architecture…
>
> dpkg supports the cross-grade, you can tell it to install a foreign
> package when a native one is already installed.

How do you do that currently?

> So the goal is to allow the user to cross-grade his system with
> a "dpkg -i dpkg_1.16.2_<foreignarch>.deb" (modulo the need to pre-install
> the predependencies).

With dpkg from your pu/multiarch/full branch, this does not work:

,----
| # dpkg --version
| Debian `dpkg' package management program version 1.16.1.2-171-gae208 (i386).
| This is free software; see the GNU General Public License version 2 or
| later for copying conditions. There is NO warranty.
| # dpkg -i /var/cache/apt/archives/libc-bin_2.13-22_amd64.deb 
| dpkg: error processing /var/cache/apt/archives/libc-bin_2.13-22_amd64.deb (--install):
|  libc-bin:amd64 2.13-22 (Multi-Arch: foreign) is not co-installable with libc-bin:i386 2.13-22 (Multi-Arch: foreign) which is currently installed
| Errors were encountered while processing:
|  /var/cache/apt/archives/libc-bin_2.13-22_amd64.deb
`----

Cheers,
       Sven 


Reply to: