Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trying to remove "architecture i386"

688 views
Skip to first unread message

Sharon Kimble

unread,
Nov 30, 2015, 6:30:05 PM11/30/15
to
I am running a "amd64" version of jessie and in an effort to get
'crossover_14.1.11-1.deb' installed, which is 32-bit. To do this I issued the
command -

╭────
│sudo dpkg --add-architecture i386
╰────

and then -

╭────
│dpkg --print-foreign-architectures
╰────

then I did a 'apt-get update' and tried to install crossover again. I've
now given up trying to instal it and wish to move back to just being a
64-bit machine using amd64 packages only. I've therefore done -

╭────
│sudo dpkg --remove-architecture i386
╰────

which failed saying -

--8<---------------cut here---------------start------------->8---
dpkg: error: cannot remove architecture 'i386' currently in use by the database
--8<---------------cut here---------------end--------------->8---

How then can I remove 'i386' please, or should I just cut my losses and reinstall?

Thanks
Sharon
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.1
signature.asc

Ansgar Burchardt

unread,
Dec 1, 2015, 3:50:04 AM12/1/15
to
Sharon Kimble <boud...@skimble.plus.com> writes:
> ╭────
> │sudo dpkg --remove-architecture i386
> ╰────
>
> which failed saying -
>
> dpkg: error: cannot remove architecture 'i386' currently in use by the database
>
> How then can I remove 'i386' please, or should I just cut my losses and reinstall?

Do you still have any i386 packages installed? I think running

dpkg -l "*:i386"

should list them (I don't use multiarch myself, but it works for the
native architecture and "*:all").

Ansgar

Martin Read

unread,
Dec 1, 2015, 10:10:05 AM12/1/15
to
On 01/12/15 08:47, Ansgar Burchardt wrote:
> Do you still have any i386 packages installed? I think running
>
> dpkg -l "*:i386"
>
> should list them (I don't use multiarch myself, but it works for the
> native architecture and "*:all").

I can confirm on my multiarch system that the command you suggest will
do what you intend.

Sharon Kimble

unread,
Dec 1, 2015, 1:30:06 PM12/1/15
to
Thanks Ansgar.

--8<---------------cut here---------------start------------->8---
dpkg -l "*:i386"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================-=================-=================-=======================================================
rc crossover 14.1.11-1 i386 Run Windows applications like MS Office
rc libasound2:i386 1.0.28-1 i386 shared library for ALSA applications
rc libc6:i386 2.19-18+deb8u1 i386 GNU C Library: Shared libraries
rc libc6-i686:i386 2.19-18+deb8u1 i386 GNU C Library: Shared libraries [i686 optimized]
rc libdrm2:i386 2.4.58-2 i386 Userspace interface to kernel DRM services -- runtime
rc libexpat1:i386 2.1.0-6+deb8u1 i386 XML parsing C library - runtime library
rc libfreetype6:i386 2.5.2-3+deb8u1 i386 FreeType 2 font engine, shared library files
rc libgcc1:i386 1:4.9.2-10 i386 GCC support library
rc libgl1-mesa-glx:i386 10.3.2-1+deb8u1 i386 free implementation of the OpenGL API -- GLX runtime
rc libglapi-mesa:i386 10.3.2-1+deb8u1 i386 free implementation of the GL API -- shared library
rc libglu1-mesa:i386 9.0.0-2 i386 Mesa OpenGL utility library (GLU)
rc libice6:i386 2:1.0.9-1+b1 i386 X11 Inter-Client Exchange library
rc liblcms2-2:i386 2.6-3+b3 i386 Little CMS 2 color management library
rc libpng12-0:i386 1.2.50-2+deb8u1 i386 PNG library - runtime
rc libsm6:i386 2:1.2.2-1+b1 i386 X11 Session Management library
rc libstdc++6:i386 4.9.2-10 i386 GNU Standard C++ Library v3
rc libudev1:i386 215-17+deb8u2 i386 libudev shared library
rc libuuid1:i386 2.25.2-6 i386 Universally Unique ID library
rc libx11-6:i386 2:1.6.2-3 i386 X11 client-side library
rc libx11-xcb1:i386 2:1.6.2-3 i386 Xlib/XCB interface library
rc libxau6:i386 1:1.0.8-1 i386 X11 authorisation library
rc libxcb-dri2-0:i386 1.10-3+b1 i386 X C Binding, dri2 extension
rc libxcb-dri3-0:i386 1.10-3+b1 i386 X C Binding, dri3 extension
rc libxcb-glx0:i386 1.10-3+b1 i386 X C Binding, glx extension
rc libxcb-present0:i386 1.10-3+b1 i386 X C Binding, present extension
rc libxcb-sync1:i386 1.10-3+b1 i386 X C Binding, sync extension
rc libxcb1:i386 1.10-3+b1 i386 X C Binding
rc libxcursor1:i386 1:1.1.14-1+b1 i386 X cursor management library
rc libxdamage1:i386 1:1.1.4-2+b1 i386 X11 damaged region extension library
rc libxdmcp6:i386 1:1.1.1-1+b1 i386 X11 Display Manager Control Protocol library
rc libxext6:i386 2:1.3.3-1 i386 X11 miscellaneous extension library
rc libxfixes3:i386 1:5.0.1-2+b2 i386 X11 miscellaneous 'fixes' extension library
rc libxi6:i386 2:1.7.4-1+b2 i386 X11 Input extension library
rc libxrandr2:i386 2:1.4.2-1+b1 i386 X11 RandR extension library
rc libxrender1:i386 1:0.9.8-1+b1 i386 X Rendering Extension client library
rc libxshmfence1:i386 1.1-4 i386 X shared memory fences - shared library
rc libxxf86vm1:i386 1:1.1.3-1+b1 i386 X11 XFree86 video mode extension library
rc zlib1g:i386 1:1.2.8.dfsg-2+b1 i386 compression library - runtime
--8<---------------cut here---------------end--------------->8---

Wow, that *is* a lot! But I don't think that they're all installed, ATM.
I don't know what the "rc" means though.

Thanks
Sharon.
signature.asc

Sharon Kimble

unread,
Dec 1, 2015, 1:40:04 PM12/1/15
to
Sharon Kimble <boud...@skimble.plus.com> writes:

> I am running a "amd64" version of jessie and in an effort to get
> 'crossover_14.1.11-1.deb' installed, which is 32-bit. To do this I issued the
> command -
>
> ╭────
> │sudo dpkg --add-architecture i386
> ╰────
>
> and then -
>
> ╭────
> │dpkg --print-foreign-architectures
> ╰────
>
> then I did a 'apt-get update' and tried to install crossover again. I've
> now given up trying to instal it and wish to move back to just being a
> 64-bit machine using amd64 packages only. I've therefore done -
>
> ╭────
> │sudo dpkg --remove-architecture i386
> ╰────
>
> which failed saying -
>
> dpkg: error: cannot remove architecture 'i386' currently in use by the database
>
> How then can I remove 'i386' please, or should I just cut my losses and reinstall?
>

I think that I've resolved the situation by -

--8<---------------cut here---------------start------------->8---
deb [arch=amd64] http://foo
deb-src [arch=amd64] http://foo
--8<---------------cut here---------------end--------------->8---

in my sources.list.

I installed all amd64 packages that were shown as being removed in
yesterdays logwatch, and then I manually removed all the i386 packages
From /var/cache/apt/archives and then rebooted.

Everything came back up successfully, and I then "sudo dpkg
--remove-architecture i386" and checked using "dpkg
--print-foreign-architectures" which showed a zero response, and I then
"dpkg --print-architecture" which showed "amd64"!

Mission accomplished!

Thanks
Sharon.
signature.asc

Steve McIntyre

unread,
Dec 1, 2015, 3:30:06 PM12/1/15
to
boud...@skimble.plus.com wrote:
>Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> writes:
>>
>> Do you still have any i386 packages installed? I think running
>>
>> dpkg -l "*:i386"
>>
>> should list them (I don't use multiarch myself, but it works for the
>> native architecture and "*:all").
>>
>> Ansgar
>
>Thanks Ansgar.
>
>--8<---------------cut here---------------start------------->8---
>dpkg -l "*:i386"
>Desired=Unknown/Install/Remove/Purge/Hold
>| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
>|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
>||/ Name Version Architecture Description
>+++-=========================-=================-=================-=======================================================
>rc crossover 14.1.11-1 i386 Run Windows applications like MS Office
>rc libasound2:i386 1.0.28-1 i386 shared library for ALSA applications
>rc libc6:i386 2.19-18+deb8u1 i386 GNU C Library: Shared libraries
>rc libc6-i686:i386 2.19-18+deb8u1 i386 GNU C Library: Shared libraries [i686 optimized]
>rc libxxf86vm1:i386 1:1.1.3-1+b1 i386 X11 XFree86 video mode extension library

<snip>

>rc zlib1g:i386 1:1.2.8.dfsg-2+b1 i386 compression library - runtime
>--8<---------------cut here---------------end--------------->8---
>
>Wow, that *is* a lot! But I don't think that they're all installed, ATM.
>I don't know what the "rc" means though.

It's not the clearest unless you're looking for it, but it's in the
header at the top of the output. "r" means "Remove", "c" means
"Conf-files", i.e. the packages have been (or are about to be) removed
but still have configuration left. A normally installed package would
be shown as "ii", by comparison.

--
Steve McIntyre, Cambridge, UK. st...@einval.com
"Further comment on how I feel about IBM will appear once I've worked out
whether they're being malicious or incompetent. Capital letters are forecast."
Matthew Garrett, http://www.livejournal.com/users/mjg59/30675.html
0 new messages