web-dev-qa-db-ja.com

APTが「即時設定を実行できませんでした」と言ったときにアプリをインストールする方法は?

私の問題は、apt-get install <appsname>などのアプリをインストールしようとすると、エラーが発生することです。

root@bt:/# apt-get install bluefish
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  adduser apt apt-utils aspell aspell-en base-files base-passwd
  busybox-initramfs ca-certificates consolekit coreutils cpio cpp cpp-4.4 dbus
  dbus-x11 debconf debconf-i18n debianutils defoma dictionaries-common dmsetup
  dosfstools dpkg e2fslibs e2fsprogs esound-clients esound-common file
  findutils fontconfig fontconfig-config Fuse-utils gamin gawk gcc-4.4-base
  gconf2 gconf2-common ghostscript gnome-keyring gnome-mime-data gnupg
  gnupg-curl gpgv gsfonts gvfs gvfs-backends hdparm hicolor-icon-theme
  ifupdown indicator-application initramfs-tools initramfs-tools-bin
  initscripts insserv klibc-utils libacl1 libappindicator0 libarchive1
  libart-2.0-2 libasound2 libaspell15 libatasmart4 libatk1.0-0 libatk1.0-data
  libattr1 libaudiofile0 libavahi-client3 libavahi-common-data
  libavahi-common3 libavahi-glib1 libblkid1 libbluetooth3 libbonobo2-0
  libbonobo2-common libbonoboui2-0 libbonoboui2-common libbz2-1.0 libc-bin
  libc6 libc6-i686 libcairo2 libcap2 libcdio-cdda0 libcdio-paranoia0 libcdio10
  libck-connector0 libcomerr2 libcups2 libcupsimage2 libcurl3-gnutls
  libdatrie1 libdb4.8 libdbus-1-3 libdbus-glib-1-2 libdbusmenu-glib1
  libdbusmenu-gtk1 libdevmapper1.02.1 libdirectfb-1.2-0 libdrm-intel1
  libdrm-nouveau1 libdrm-radeon1 libdrm2 libeggdbus-1-0 libesd0 libexif12
  libexpat1 libffi5 libfontconfig1 libfontenc1 libfreetype6 libfribidi0
  libfuse2 libgail18 libgamin0 libgcc1 libgconf2-4 libgcr0 libgcrypt11
  libgdbm3 libgdu0 libglade2-0 libglib2.0-0 libglib2.0-data libgmp3c2
  libgnome-keyring0 libgnome2-0 libgnome2-common libgnomecanvas2-0
  libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0
  libgnomevfs2-common libgnutls26 libgomp1 libgp11-0 libgpg-error0
  libgphoto2-2 libgphoto2-port0 libgpm2 libgs8 libgssapi-krb5-2 libgtk2.0-0
  libgtk2.0-bin libgtk2.0-common libgudev-1.0-0 libgvfscommon0 libhal-storage1
  libhal1 libice6 libidl0 libidn11 libimobiledevice0 libindicator0 libjasper1
  libjpeg62 libjson-glib-1.0-0 libk5crypto3 libkeyutils1 libklibc libkrb5-3
  libkrb5support0 liblcms1 libldap-2.4-2 liblocale-gettext-Perl libltdl7
  liblzma1 libmagic1 libmagickcore2 libmagickwand2 libmpfr1ldbl libncurses5
  libncursesw5 libnewt0.52 libnih-dbus1 libnih1 libntfs-3g75 libntfs10
  libopenobex1 liborbit2 libpam-ck-connector libpam-gnome-keyring
  libpam-modules libpam-runtime libpam0g libpango1.0-0 libpango1.0-common
  libpaper-utils libpaper1 libparted0debian1 libpcre3 libpixman-1-0 libplist1
  libplymouth2 libpng12-0 libpolkit-agent-1-0 libpolkit-backend-1-0
  libpolkit-gobject-1-0 libpopt0 libproxy0 libpython2.6 libreadline6
  libsasl2-2 libsasl2-modules libselinux1 libsepol1 libsgutils2-2 libslang2
  libsm6 libsmbclient libsoup-gnome2.4-1 libsoup2.4-1 libsqlite3-0 libss2
  libssl0.9.8 libstdc++6 libsysfs2 libtalloc2 libtasn1-3
  libtext-charwidth-Perl libtext-iconv-Perl libtext-wrapi18n-Perl libthai-data
  libthai0 libtiff4 libts-0.0-0 libudev0 libusb-0.1-4 libusb-1.0-0 libusbmuxd1
  libuuid1 libwbclient0 libx11-6 libx11-data libxau6 libxcb-render-util0
  libxcb-render0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
  libxext6 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxml2 libxrandr2
  libxrender1 libxt6 lsb-base lzma make makedev mime-support module-init-tools
  mount mountall mtools ncurses-bin net-tools netbase ntfs-3g ntfsprogs
  obex-data-server openssl passwd Perl perl-base Perl-modules plymouth
  plymouth-theme-ubuntu-text policykit-1 policykit-1-gnome powermgmt-base
  procps psfontmgr psmisc python python-dbus python-gobject python-minimal
  python-support python2.6 python2.6-minimal readline-common sed
  sensible-utils sgml-base shared-mime-info sysv-rc sysvinit-utils tsconf
  ttf-dejavu-core tzdata ubuntu-keyring ucf udev udisks upstart usbmuxd
  util-linux uuid-runtime whiptail x-ttcidfont-conf x11-common
  xfonts-encodings xfonts-utils xml-core zlib1g
Suggested packages:
  ecryptfs-utils aptitude synaptic wajig dpkg-dev apt-doc bzip2 python-apt
  aspell-doc spellutils galeon firefox abrowser www-browser weblint-Perl
  weblint libxml2-utils php5-cli tidy cpp-doc gcc-4.4-locales debconf-doc
  debconf-utils libterm-readline-gnu-Perl libgnome2-Perl libnet-ldap-Perl
  defoma-doc dfontmgr libfont-freetype-Perl ispell emacsen-common jed-extra
  gpart parted e2fsck-static mlocate locate slocate gconf-defaults-service
  ghostscript-cups ghostscript-x hpijs gnupg-doc xloadimage imagemagick eog
  libpcsclite1 apmd iproute dhcp3-client dhcp-client ppp bootchart
  libasound2-plugins libbonobo2-bin glibc-doc cups-common esound rng-tools
  desktop-base gnome-icon-theme libgnomevfs2-bin libgnomevfs2-extra gnutls-bin
  gphoto2 gtkam gpm krb5-doc krb5-user librsvg2-common libjasper-runtime
  liblcms-utils libmagickcore2-extra libpam-doc ttf-japanese-gothic
  ttf-japanese-mincho ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp
  ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp libparted0-dev
  libparted0-i18n libsasl2-modules-otp libsasl2-modules-ldap
  libsasl2-modules-sql libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal sg3-utils make-doc nfs-common floppyd
  openssl-doc Perl-doc python-doc python-tk python-profiler python-dbus-doc
  python-dbus-dbg python-gobject-dbg python2.6-doc python2.6-profiler binutils
  binfmt-support sgml-base-doc sysv-rc-conf bum sash watershed xfsprogs
  reiserfsprogs mdadm cryptsetup util-linux-locales kbd console-tools
  debhelper
The following NEW packages will be installed:
  adduser apt apt-utils aspell aspell-en base-files base-passwd bluefish
  busybox-initramfs ca-certificates consolekit coreutils cpio cpp cpp-4.4 dbus
  dbus-x11 debconf debconf-i18n debianutils defoma dictionaries-common dmsetup
  dosfstools dpkg e2fslibs e2fsprogs esound-clients esound-common file
  findutils fontconfig fontconfig-config Fuse-utils gamin gawk gcc-4.4-base
  gconf2 gconf2-common ghostscript gnome-keyring gnome-mime-data gnupg
  gnupg-curl gpgv gsfonts gvfs gvfs-backends hdparm hicolor-icon-theme
  ifupdown indicator-application initramfs-tools initramfs-tools-bin
  initscripts insserv klibc-utils libacl1 libappindicator0 libarchive1
  libart-2.0-2 libasound2 libaspell15 libatasmart4 libatk1.0-0 libatk1.0-data
  libattr1 libaudiofile0 libavahi-client3 libavahi-common-data
  libavahi-common3 libavahi-glib1 libblkid1 libbluetooth3 libbonobo2-0
  libbonobo2-common libbonoboui2-0 libbonoboui2-common libbz2-1.0 libc-bin
  libc6 libc6-i686 libcairo2 libcap2 libcdio-cdda0 libcdio-paranoia0 libcdio10
  libck-connector0 libcomerr2 libcups2 libcupsimage2 libcurl3-gnutls
  libdatrie1 libdb4.8 libdbus-1-3 libdbus-glib-1-2 libdbusmenu-glib1
  libdbusmenu-gtk1 libdevmapper1.02.1 libdirectfb-1.2-0 libdrm-intel1
  libdrm-nouveau1 libdrm-radeon1 libdrm2 libeggdbus-1-0 libesd0 libexif12
  libexpat1 libffi5 libfontconfig1 libfontenc1 libfreetype6 libfribidi0
  libfuse2 libgail18 libgamin0 libgcc1 libgconf2-4 libgcr0 libgcrypt11
  libgdbm3 libgdu0 libglade2-0 libglib2.0-0 libglib2.0-data libgmp3c2
  libgnome-keyring0 libgnome2-0 libgnome2-common libgnomecanvas2-0
  libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0
  libgnomevfs2-common libgnutls26 libgomp1 libgp11-0 libgpg-error0
  libgphoto2-2 libgphoto2-port0 libgpm2 libgs8 libgssapi-krb5-2 libgtk2.0-0
  libgtk2.0-bin libgtk2.0-common libgudev-1.0-0 libgvfscommon0 libhal-storage1
  libhal1 libice6 libidl0 libidn11 libimobiledevice0 libindicator0 libjasper1
  libjpeg62 libjson-glib-1.0-0 libk5crypto3 libkeyutils1 libklibc libkrb5-3
  libkrb5support0 liblcms1 libldap-2.4-2 liblocale-gettext-Perl libltdl7
  liblzma1 libmagic1 libmagickcore2 libmagickwand2 libmpfr1ldbl libncurses5
  libncursesw5 libnewt0.52 libnih-dbus1 libnih1 libntfs-3g75 libntfs10
  libopenobex1 liborbit2 libpam-ck-connector libpam-gnome-keyring
  libpam-modules libpam-runtime libpam0g libpango1.0-0 libpango1.0-common
  libpaper-utils libpaper1 libparted0debian1 libpcre3 libpixman-1-0 libplist1
  libplymouth2 libpng12-0 libpolkit-agent-1-0 libpolkit-backend-1-0
  libpolkit-gobject-1-0 libpopt0 libproxy0 libpython2.6 libreadline6
  libsasl2-2 libsasl2-modules libselinux1 libsepol1 libsgutils2-2 libslang2
  libsm6 libsmbclient libsoup-gnome2.4-1 libsoup2.4-1 libsqlite3-0 libss2
  libssl0.9.8 libstdc++6 libsysfs2 libtalloc2 libtasn1-3
  libtext-charwidth-Perl libtext-iconv-Perl libtext-wrapi18n-Perl libthai-data
  libthai0 libtiff4 libts-0.0-0 libudev0 libusb-0.1-4 libusb-1.0-0 libusbmuxd1
  libuuid1 libwbclient0 libx11-6 libx11-data libxau6 libxcb-render-util0
  libxcb-render0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
  libxext6 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxml2 libxrandr2
  libxrender1 libxt6 lsb-base lzma make makedev mime-support module-init-tools
  mount mountall mtools ncurses-bin net-tools netbase ntfs-3g ntfsprogs
  obex-data-server openssl passwd Perl perl-base Perl-modules plymouth
  plymouth-theme-ubuntu-text policykit-1 policykit-1-gnome powermgmt-base
  procps psfontmgr psmisc python python-dbus python-gobject python-minimal
  python-support python2.6 python2.6-minimal readline-common sed
  sensible-utils sgml-base shared-mime-info sysv-rc sysvinit-utils tsconf
  ttf-dejavu-core tzdata ubuntu-keyring ucf udev udisks upstart usbmuxd
  util-linux uuid-runtime whiptail x-ttcidfont-conf x11-common
  xfonts-encodings xfonts-utils xml-core zlib1g
0 upgraded, 314 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/92.5MB of archives.
After this operation, 361MB of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Could not perform immediate configuration on 'libattr1'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
2
Rajendra Sharma

パッケージの更新にlibcが必要なときにE: Could not perform immediate configuration on ...エラーが発生することがあると思いますが、更新されたlibcはまだインストールされていません。

これを試して:

Sudo apt-get update && Sudo apt-get install libc6

問題なく動作する場合は、これを試してみてください。ただし、何かを削除する場合、特にlibc6(その場合はここにコメントして質問に詳細を追加してください。 ):

Sudo apt-get install libc6-i686

すべてが機能する場合は、残りの更新を完了できるかどうかを確認します。

Sudo apt-get upgrade

それが機能しない場合は、すべての出力を含む詳細をコメントして投稿してください。

謝辞:
この回答は、大まかに基づいています Edward van Kuikanswer to aptエラー:即時設定を実行できませんでした (- SU )。
(インストールされていないパッケージはないため、dist-upgradeは不要です。)

3
Eliah Kagan

その場合は、実行中

apt-get dist-upgrade -o APT :: Immediate-Configure = 0

代わりに、アップグレードを続行できるようにする必要があります

/etc/apt/apt.conf

この問題の別の可能な回避策は、squeezeソースとwheezyソースの両方を一時的にsources.listに追加し、apt-get updateを実行することです。

例えば:

deb http // ftp.se.debian.org/debian/wheezy main contrib non-free

deb-src http // ftp.se.debian.org/debian/wheezy main contrib non-free

deb http // mirrors.kernel.org/debian jessie main contrib

1
Correcter