11.10 upgrade fails with dpkg: error: unknown option 'foreign-architecture'
I am upgrading from 11.04 to 11.10. In the "Installing the upgrades" step, the upgrade fails with "Could not install the upgrades. The upgrade has aborted. Your system could be in an unusable state." The errors show up in the distribution upgrade UI as:
E:Sub-process /usr/bin/dpkg returned an error code (2), E:Sub-process /usr/bin/dpkg returned an error code (2), ... (repeated many times)
/var/log/
dpkg: error: configuration error: /etc/dpkg/
I attempted to remove 'user installed' packages in synaptic, but synaptic fails with the same dpkg error. Loading update manager, I receive this error in the UI:
Could not calculate the upgrade
An unresolvable problem occurred while calculating the upgrade.
Please report this bug against the 'update-manager' package and include the following error message:
'E:Error, pkgProblemResol
/var/log/
...
Installing gir1.2-rb-3.0 as Depends of rhythmbox-plugins
Installing distro-info as Depends of ubuntu-dev-tools
new important dependency: python-mmkeys
Installing python-mmkeys as Recommends of quodlibet
Installing gtk3-engines-unico as Depends of light-themes
Installing gir1.2-cogl-1.0 as Depends of gir1.2-clutter-1.0
Installing gir1.2-json-1.0 as Depends of gir1.2-clutter-1.0
Installing libexporter-
new important dependency: libgphoto2-l10n
Installing libgphoto2-l10n as Recommends of libgphoto2-2
Starting
Starting 2
Investigating (0) python2.7 [ amd64 ] < 2.7.1-5ubuntu2 -> 2.7.2-5ubuntu1 > ( python )
Broken python2.7:amd64 Conflicts on python-profiler [ amd64 ] < 2.6.6-0ubuntu1 > ( multiverse/python ) (<= 2.7.1-2)
Considering python-
Added python-
Fixing python2.7:amd64 via remove of python-
Investigating (0) libdbusmenu-glib4 [ amd64 ] < none -> 0.5.0-0ubuntu3 > ( libs )
Broken libdbusmenu-
Considering gir1.2-
Added gir1.2-
Fixing libdbusmenu-
Investigating (0) gvfs [ amd64 ] < 1.8.0-0ubuntu3 -> 1.10.0-0ubuntu1 > ( libs )
Broken gvfs:amd64 Conflicts on libgvfscommon0 [ amd64 ] < 1.8.0-0ubuntu3 > ( libs )
Considering libgvfscommon0:
Added libgvfscommon0:
Fixing gvfs:amd64 via remove of libgvfscommon0:
Investigating (0) libjack-jackd2-0 [ amd64 ] < none -> 1.9.7~dfsg-1ubuntu2 > ( libs )
...
Investigating (2) libpulse-browse0 [ amd64 ] < 1:0.9.22+
Broken libpulse-
Considering libpulse0:amd64 119 as a solution to libpulse-
Removing libpulse-
Try to Re-Instate (2) flashplugin-
Investigating (3) indicator-applet [ amd64 ] < 0.4.12-0ubuntu1 > ( gnome )
Broken indicator-
Considering gnome-panel:amd64 20 as a solution to indicator-
Removing indicator-
Investigating (3) padevchooser [ amd64 ] < 0.9.3-2ubuntu4 > ( sound )
Broken padevchooser:amd64 Depends on libpulse-browse0 [ amd64 ] < 1:0.9.22+
Considering libpulse-
Removing padevchooser:amd64 rather than change libpulse-
Done
dpkg: error: configuration error: /etc/dpkg/
.: 19: Can't open base-installer/
Installing evince as Depends of ubuntu-desktop
Setting NOT as auto-installed (direct Depends of pkg in APT::Never-
Installing libevince3-3 as Depends of evince
(end of log)
I would like to complete the upgrade to 11.10 without errors. Any suggestions?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Benjamin Rubinger
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
Open the file via terminal:
gksudo gedit /etc/dpkg/
Insert only in the first line (rest of file is empty):
foreign-
Save the file.
Run:
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
Any errors?
Reference.
http://
https:/
https:/
Just in case, deactivate third party repos, make sure Natty is fully up-to-date.
https:/
Revision history for this message
|
#2 |
Thank you for the reply!
I opened that file, and found the line you asked me to add was already there. I continue to get the same error.
~$ cat /etc/dpkg/
foreign-
~$ sudo dpkg --configure -a
dpkg: error: configuration error: /etc/dpkg/
~$
sudo apt-get update completed, and I am running sudo apt-get upgrade right now. It will be downloading items for some time, but I suspect that will still lead to the same result, since I haven't changed anything. Currently, my repositories are only set to the official Canonical Oneiric ones due to the partially completed upgrade.
Revision history for this message
|
#3 |
sudo apt-get upgrade did crash out wit this message:
E: Could not perform immediate configuration on 'util-linux'. Please see man 5 apt.conf under APT::Immediate-
These seem to be the relevant parts of the terminal output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
acroread aisleriot alsa-utils apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common appmenu-gtk apport-gtk apt apt-transport-https apt-utils aptdaemon aptitude apturl apturl-common aspectj at-spi audacity audacity-data bamfdaemon banshee
banshee-
cmake-curses-gui cmake-data compiz compiz-core compiz-gnome compiz-plugins compiz-
devscripts dnsutils doc-base eclipse eclipse-jdt eclipse-pde eclipse-platform eclipse-
erlang-
ffmpeg2theora file-roller filezilla filezilla-common firefox firefox-globalmenu flashplugin-
gdebi gdebi-core gdm gedit gedit-common gedit-plugins geoclue-
gnome-applets gnome-applets-data gnome-bluetooth gnome-control-
gnome-screensaver gnome-screenshot gnome-search-tool gnome-session gnome-session-bin gnome-session-
gnome-
gucharmap guile-1.8-libs gvfs gvfs-backends gvfs-bin gvfs-fuse gwibber gwibber-service hedgewars hugin hugin-data hugin-tools ia32-libs iagno ibus ibus-gtk ibus-m17n ibus-pinyin ibus-pinyin-
icedtea-plugin indicator-
lib32asound2 lib32gcc1 lib32ncurses5 lib32ncursesw5 lib32stdc++6 libalgorithm-
libaqbanking3
libcanberra-pulse libcanberra0 libcloog-ppl0 libclutter-1.0-0 libcompizconfig0 libcompress-
libdbd-mysql-perl libdbi-perl libdecoration0 libdigest-sha1-perl libdns69 libept1 libequinox-
libgdu-gtk0 libgfortran3 libggz2 libgirepository
libgnome-
libgtk-
libjson-xs-perl libk5crypto3 libkrb5-3 libkrb5-dev libkrb5support0 liblapack3gf liblaunchpad-
libmono-
libmono-
libncurses-
libparse-
libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtcore4 libqtgui4 librdf0 libreadline5 libreadline6 libred5-java
libreoffice-
libsasl2-modules libsigc++-2.0-0c2a libsmbios2 libsnmp15 libsox-fmt-ffmpeg libsqlite3-ruby1.8 libssl-dev libssl0.9.8 libstartup-
libtaglib2.0-cil libtelepathy-
libwps-0.2-2 libwvstreams4.
linux-
nautilus-sendto nautilus-
openjdk-6-jre-lib openoffice.
plymouth-x11 postfix postgresql postgresql-8.4 postgresql-
pulseaudio-
python-gtk2 python-gtkglext1 python-ibus python-indicate python-minimal python-openssl python-protobuf python-pyatspi python-pycurl python-scipy python-ubuntuone python-
python2.6-minimal python2.7 python2.7-dev python2.7-minimal qt4-qmake quadrapassel quodlibet rdesktop rhino rhythmbox rhythmbox-
simple-scan software-center software-
timidity-daemon tomboy totem totem-common totem-mozilla totem-plugins tracker tracker-extract tracker-gui tracker-
ubuntuone-
vim-runtime vim-tiny vinagre vino vlc vlc-nox vlc-plugin-notify vlc-plugin-pulse w3m wget wine wine1.2 wireshark wireshark-common wpasupplicant x264 xserver-xorg-core xserver-
The following packages will be upgraded:
acl acpi acpid alacarte alsa-base alsa-oss ant ant-optional anthy anthy-common antlr app-install-data app-install-
autotools-dev avahi-autoipd avahi-daemon avahi-utils base-files base-passwd bash bash-completion binfmt-support bluetooth bluez bluez-alsa bluez-cups bluez-gstreamer bluez-utils bogofilter bogofilter-common bsdmainutils bsdutils busybox-initramfs busybox-static bzr
bzr-builddeb bzr-dbus bzr-doc bzr-email bzr-gtk bzr-pipeline bzr-pqm bzr-search bzrtools ca-certificates
compizconfig-
desktop-
firefox-locale-ja fontconfig fontconfig-config foomatic-filters fop friendly-recovery ftgl-dev ftp fuse-utils gamin gcj-4.5-base gconf-defaults-
ghostscript-x gimp gimp-data gimp-help-common gimp-help-en gir1.2-atk-1.0 gir1.2-dee-0.5 gir1.2-gconf-2.0 gir1.2-
gnome-
gstreamer0.
hostname hpijs hplip hplip-cups hplip-data human-theme humanity-icon-theme hunspell-en-ca hunspell-en-us hwdata hwtest hwtest-gtk ibus-anthy ibus-pinyin-
inputattach insserv install-info iotop iputils-arping iputils-tracepath isc-dhcp-client isc-dhcp-common iso-codes ivy jarwrapper java-common java-wrappers kbd kerneloops-daemon keyboard-
language-
launchpad-
libactivesupp
libaudio-dev libaudio2 libavahi-client-dev libavahi-client3 libavahi-
libbrlapi0.5 libbsd0 libburn4 libc-ares2 libcaca-dev libcaca0 libcairo-gobject2 libcairo2 libcairomm-1.0-1 libcanberra-
libcolamd2.7.1 libcommon-
libdb4.7 libdb4.8 libdbus-1-3 libdbus-1-dev libdbus-glib-1-2 libdbusmenu-qt2 libdc1394-22 libdca0 libdconf0 libdee-1.0-1 libdesktopcouch
libdirectfb-1.2-9 libdiscid0 libdjvulibre-text libdjvulibre21 libdrm-dev libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libdv4 libdvdread4 libebml3 libecj-java libecryptfs0 libedit2 libelf1 libelfg0 libenca0 libenchant1c2a libespeak1 libevent-1.4-2
libexcalibur-
libgcrypt11 libgcrypt11-dev libgd2-xpm libgdata-common libgdbm3 libgdiplus libgdk-pixbuf2.0-0 libgdu0 libgee2 libgeoclue0 libgeoip1 libgexiv2-0 libggzcore9 libggzmod4 libgimp2.0 libgksu2-0 libgladeui-1-11 libglew1.5 libglew1.5-dev libglewmx1.5 libglib2.0-data
libglu1-mesa libglu1-mesa-dev libgmime-2.4-2 libgmp3c2 libgnome-menu2 libgnomecanvas2-0 libgnomecanvas2
libgnomevfs2-
libgstreamer-
libgwenhywfar
libimlib2 libimobiledevice2 libio-compress-
libjpeg8-dev libjs-jquery libjs-prototype libjs-scriptaculous libjson-glib-1.0-0 libjson-perl libjtidy-java libkeyutils1 libklibc libkms1 libkpathsea5 libktoblzcheck1c2a liblaunchpad-
liblogback-java liblouis-data liblouis2 libltdl-dev libltdl7 liblua5.1-0 liblvm2app2.2 liblzo2-2 libmagic1 libmagickcore3 libmagickcore3-
libmng1 libmocha-ruby1.8 libmodplug1 libmono-
libnspr4-0d libnss3 libnss3-1d libofx4 libogg0 libopenal1 libopencc1 liborbit2 liborc-0.4-0 libosp5 libossp-uuid16 libotr2 libpam-ck-connector libpam-
libpaper-utils libpaper1 libparse-
libpolkit-
libqt4-webkit libqtassistantc
libreoffice-
libsdl1.2-dev libsdl1.2debian libsdl1.
libsoundtouch0 libsoup-gnome2.4-1 libsoup2.4-1 libsox-fmt-alsa libsox-fmt-base libsox-fmt-mp3 libsox-fmt-oss libsox-fmt-pulse libsox1b libspeechd2 libspeex1 libspeexdsp1 libspring-
libspring-
libtelepathy-
libupower-glib1 liburi-perl libusb-0.1-4 libusb-1.0-0 libutempter0 libutouch-frame1 libutouch-geis1 libutouch-grail1 libuuid1 libva-x11-1 libva1 libvecmath-java libvisual-
libwebkitgtk-
libx11-dev libx11-xcb1 libx86-1 libxau-dev libxau6 libxcb-dri2-0 libxcb-keysyms1 libxcb-randr0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-xv0 libxcb1 libxcb1-dev libxcomposite1 libxcursor-dev libxcursor1 libxdamage1 libxdmcp-dev libxdmcp6 libxerces2-java
libxext-dev libxext6 libxfixes-dev libxfixes3 libxfont1 libxft-dev libxft2 libxi-dev libxi6 libxinerama-dev libxinerama1 libxklavier16 libxml-twig-perl libxml2 libxml2-utils libxmlgraphics-
libxom-java libxp6 libxrandr-dev libxrandr2 libxrender-dev libxrender1 libxslt1.1 libxss1 libxt-dev libxt6 libxtst6 libxv1 libxvidcore4 libxxf86vm1 libyaml-0-2 libzbar0 libzeitgeist-1.0-1 libzephyr4 lintian linux-firmware linux-libc-dev linux-sound-base lksctp-tools
lm-sensors locales lockfile-progs login logrotate lsb-base lsb-release m17n-contrib m17n-db m4 make man-db mdf2iso media-player-info meld memtest86+ mercurial mercurial-common metacity metacity-common mlocate mobile-
module-init-tools mountall mtr-tiny multiarch-support myspell-en-au myspell-en-gb myspell-en-za mysql-client-5.1 mysql-client-
netcat-openbsd netcat-traditional nicotine ntpdate nux-tools nvidia-common nvidia-current nvidia-settings obexd-client onboard openoffice.org-calc openoffice.
openoffice.
openoffice.
policykit-1 policykit-1-gnome policykit-
python-argparse python-avahi python-brlapi python-bzrlib python-cairo python-central python-chardet python-compizconfig python-configglue python-configobj python-cups python-cupshelpers python-dateutil python-dbus python-debian python-
python-
python-
python-
python-
python-sip python-smbc python-
python-webkit python-wnck python-
ruby-actionmailer ruby-actionmail
rubygems1.8 samba samba-common samba-common-bin sane-utils scim-bridge-
sqlite sqlite3 ssh-askpass-gnome stk strace subversion sudo swig syslinux syslinux-common system-
tesseract-ocr thunderbird-
tzdata-java ubufox ubuntu-artwork ubuntu-docs ubuntu-minimal ubuntu-mono ubuntu-sso-client ubuntu-standard ubuntu-
update-inetd upstart ure usb-modeswitch usb-modeswitch-data usbutils util-linux uuid-runtime vlc-data wdiff whiptail whois wifi-radar winbind winetricks winpdb wireless-crda wireless-tools wvdial x-ttcidfont-conf x11-common x11-utils x11-xfs-utils x11-xkb-utils
x11-xserver-utils x11proto-core-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-xext-dev x11proto-
xorg-
xserver-
xserver-
xserver-
1191 upgraded, 0 newly installed, 0 to remove and 700 not upgraded.
Need to get 778 MB of archives.
After this operation, 109 MB disk space will be freed.
...
Get:1181 http://
Get:1182 http://
Get:1183 http://
Get:1184 http://
Get:1185 http://
Get:1186 http://
Get:1187 http://
Get:1188 http://
Get:1189 http://
Get:1190 http://
Get:1191 http://
Fetched 778 MB in 2h 45min 59s (78.1 kB/s)
E: Could not perform immediate configuration on 'util-linux'. Please see man 5 apt.conf under APT::Immediate-
~$
Revision history for this message
|
#4 |
> man 5 apt.conf under APT::Immediate-
Refer to 'Immediate-
http://
Revision history for this message
|
#5 |
Thanks for the suggestion about immediate configure. This did not solve the main problem, which is that dpkg is erroring.
~$ sudo apt-get -o APT::Immediate-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
acroread aisleriot alsa-utils apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common appmenu-gtk apport-gtk apt apt-transport-https apt-utils aptdaemon aptitude apturl apturl-common aspectj at-spi audacity audacity-data bamfdaemon banshee
banshee-
cmake-curses-gui cmake-data compiz compiz-core compiz-gnome compiz-plugins compiz-
...
Do you want to continue [Y/n]? Y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: error: configuration error: /etc/dpkg/
keyboard-
dpkg: error: configuration error: /etc/dpkg/
dpkg: error: configuration error: /etc/dpkg/
E: Sub-process /usr/bin/dpkg returned an error code (2)
~$
Revision history for this message
|
#6 |
Your current dpkg version seem to not support the foreign-
1/remove the file /etc/dpkg/
2/Upgrade dpkg to the latest.
3/ Readd /etc/dpkg/
4/ finish your upgrade
Revision history for this message
|
#7 |
Unfortunately it says dpkg is the latest version.
Revision history for this message
|
#8 |
Are you sure it is the latest of 11.10 and not the latest of 11.04. You can check dpkg version with this command
"dpkg -l | grep dpkg"
In any case for the moment remove multiarch stuff, do a full upgrade. You can still add multiarch later anyway.
Revision history for this message
|
#9 |
Thank you very much for your replies, gregory and Steph!
I removed the multiarch configuration file.
I loaded up Synaptic, and noticed something strange last night - in the sources configuration, all of the checkboxes on the first tab were unchecked. It seemed like those were the primary repositories, so I checked them. It could be that they were unchecked during the first upgrade attempt, and incorrect versions of packages were installed?
The installed version of dpkg was something like "natty+1" which was somehow later than the official Oneiric version, which I believe is 1.16.0.3ubuntu5. In Synaptic, I downgraded dpkg, which worked because of the fixed configuration suggestion from gregory. I then ran update and upgrade, but that failed with the problem above, could not perform immediate upgrade on util-linux. I followed my findings above to force immediate on the upgrade of that package, and that seemed to work.
Then apt, synaptic, and aptitude would all crash during reading package lists by seg faulting in libc. I found this thread:
http://
and found that
sudo apt-get check -o dir::cache=/tmp
worked, so I
cd /var/cache/apt
sudo rm *.bin*
and now apt is running again. I am running the upgrade again now. I suspect that it will still fail, but will update this question with results. Thank you again for the assistance so far.
Revision history for this message
|
#10 |
How did you change the installed version of dpkg?
Revision history for this message
|
#11 |
How I changed the installed version of dpkg:
In synaptic I searched for dpkg.
One of the columns in the search results indicates which version is currently installed, which was something like "natty+1".
I searched for the proper release version of dpkg somewhere on ubuntu.com, and it was not "natty+1".
Under the package menu, I selected "force version" and looked at the options available.
The version listed on the website was in the list, along with this "natty+1" version. I selected the version shown on the website.
Synaptic indicated in all caps that the version I chose was a downgrade, and I told it to proceed.
Synaptic then installed the proper version of dpkg, as far as I know.
I then ran sudo apt-get upgrade. The upgrade completed, I rebooted, but did not get unity. X welcomed me with the error:
"There is a problem with the configuration server. (/usr/lib/
It then repeated the error once or twice more, loaded into a desktop, which seems like the older style gnome - no unity. I did not record the error message, but it told me I should select a different desktop on login. The system seems to be working otherwise.
I loaded up synaptic, did a reload, and a mark all upgrades. There was a large list of changes. It held back evolution, so I marked evolution-common and evolution-plugins for complete removal (I don't use evolution, I use Thunderbird, and they switched the default mail client to Thunderbird in this release as far as I know, so it seemed OK to finally remove evolution). It still held back wine and flash-plugin-
Since I just completed an upgrade, that seems suspicious. But maybe this round it will sort everything out. I will update with more information later.
Revision history for this message
|
#12 |
The Synaptic 'mark all upgrades' failed with
E: Internal Error, Could not early remove libaudio2
I found this thread talking about it:
https:/
and this seemed to do the trick:
dpkg --remove --force-depends libaudio2
then Synaptic said there were broken packages, so I ran a repair broken packages which completed.
Now I am running the 'mark all upgrades again'. More to follow.
Revision history for this message
|
#13 |
Synaptic would not complete its updates, claiming it couldn't remove libaudio2 and another package, after I force removed it.
I specially asked Synaptic to remove that package, and it had to remove some other software from the system, including things like VLC, but no core system packages (thankfully). The remove succeeded, then I tried again with mark all updates.
It could not 'early remove' something else, and I repeated the process. After that, the update completed successfully, requiring a restart. Now that I have rebooted, I seem to have full Oneiric. The list of updates was short, and I was able to reinstall VLC and other things I need back.
Thanks for all the replies, Sam, gregory, and Steph!
Revision history for this message
|
#14 |
Hi Benjamin,
I'm curious to know if you by any chance have Redmine installed and if you are using
Ondřej Surý's archive (https:/
Many thanks,
Peter Dam (SwitchDK)
Revision history for this message
|
#15 |
Bingo. Yes I was using the ondrej PPA. Coincidentally, I was just now editing project notes in my local redmine. I would be very happy if my question led to a fix for the problem! Let me know if I can be of any further service.
Revision history for this message
|
#16 |
Many thanks for confirming that Benjamin.
I have been able to reproduce the problem by creating a clean installation of Ubuntu 11.04 and then adding Ondřej Surý's PPA by:
sudo apt-add-repository ppa:ondrej/redmine
sudo apt-get install dpkg dpkg-dev libdpkg-perl redmine
When I run the Update Manager and attempt upgrade to 11.10 it then fails with the same errors as you have reported.
To fix the problem I did the following:
sudo rm /etc/dpkg/
sudo apt-get install dpkg=1.
Ran the Update Manager again and then the upgrade commenced.
I will create a bug report to capture all the information you provided and also the fix.
Many thanks,
Peter Dam (SwitchDK)
Revision history for this message
|
#17 |
My apologies but I forgot to add a step in post #16:
To reproduce do the following:
sudo apt-add-repository ppa:ondrej/redmine
-->sudo apt-get update
sudo apt-get install dpkg dpkg-dev libdpkg-perl redmine
Revision history for this message
|
#18 |
Please, can you upgrade the source for Ubuntu 17.10?