LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2012, 09:56 AM   #1
HappyTheCat
LQ Newbie
 
Registered: Nov 2012
Distribution: Crunchbang 10
Posts: 4

Rep: Reputation: Disabled
Exclamation Crunchbang 10; can't fix broken packages (error exit status 1)


Hi, I'm trying to reinstall some broken packages but I keep getting this error no matter how I try to fix the packages:


Code:
E: /var/cache/apt/archives/libc6_2.11.3-4_i386.deb: subprocess new pre-installation script returned error exit status 1
I've tried using synaptic, the terminal, sudo terminal and safe-upgrade. Was all I could find...


Don't hesitate to ask for more info
 
Old 11-02-2012, 12:16 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
remove the offending .deb from the archive manually or do
apt-get clean
followed by:
apt-get update
apt-get upgrade
 
Old 11-02-2012, 12:18 PM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,050

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
Hi, can you back up and tell us about the "broken packages" as I think that might be relevant to solving this problem? Debian should never have broken packages, it is very stable and its package management is up there with the best.
 
Old 11-02-2012, 06:58 PM   #4
HappyTheCat
LQ Newbie
 
Registered: Nov 2012
Distribution: Crunchbang 10
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
Hi, can you back up and tell us about the "broken packages" as I think that might be relevant to solving this problem? Debian should never have broken packages, it is very stable and its package management is up there with the best.
Well here is the thing, I tried to install some updates a couple days ago and I guess something screwed up and synaptic crashed. Programs sometimes randomly close, really infuriating...


Anyways, I reopened it and it said I had 644 broken packages on my system. Going the usual course I pressed "Fix Broken Packages" and I keep getting the same error no matter what I try.





Quote:
Originally Posted by craigevil View Post
remove the offending .deb from the archive manually or do
apt-get clean
followed by:
apt-get update
apt-get upgrade
I've tried methods all of the sorts; I've opened the file manager in root and deleted offending files(It just re-downloads it and spits the same error back at me). I've deleted the whole contents of the cache/apt folder, even the terminal method.


Same error everytime... No matter what I try...
 
Old 11-02-2012, 07:31 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
what happens when you do:

apt-get -f install
 
Old 11-02-2012, 07:36 PM   #6
HappyTheCat
LQ Newbie
 
Registered: Nov 2012
Distribution: Crunchbang 10
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by craigevil View Post
what happens when you do:

apt-get -f install


This, same error.

Code:
crunchbang@localhost:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
crunchbang@localhost:~$ sudo apt-get -f install
[sudo] password for crunchbang: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  aspell-en libwpd8c2a libglib-perl rpm2cpio xsltproc libenchant1c2a libobparser21
  libopenraw1 aspell libbabl-0.0-0 libgoffice-0.8-8-common libdjvulibre21 geany-common
  libilmbase6 libots0 libspectre1 libglew1.5 libwpg-0.1-1 libburn4 python-libxml2
  abiword-common docbook-xml evince-common libwnck-common libaiksaurus-1.2-0c2a librpmio1
  librpm1 libfftw3-3 gvfs-bin gnumeric-common fortune-mod xdg-user-dirs libloudmouth1-0
  xfce-keyboard-shortcuts ttf-lyx librecode0 libdmx1 libelf1 libglibmm-2.4-1c2a
  network-manager-vpnc powermgmt-base libkpathsea5 libt1-5 libtiff-tools hal
  libgnome2-vfs-perl libmozjs11d libvpx1 libgsf-1-common gnome-doc-utils libcroco3
  libopenexr6 libpoppler5 librarian0 libaa1 pm-utils netpbm libwps-0.1-1 vpnc thunar-data
  xserver-xephyr libxdot4 xfce4-power-manager-data poppler-utils sgml-data imagemagick
  radeontool hal-info libxml2-utils libisofs6 gimp-data desktop-file-utils
  libwebkit-1.0-common transmission-common p7zip-full eject libaspell15 libgsf-1-114
  network-manager-openvpn
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-mpm-worker apache2.2-bin apache2.2-common apt-utils aptitude aptitude-doc-en
  aspell avahi-daemon bash binutils ca-certificates chromium-browser-inspector conky-std
  console-terminus cpio cron defoma dmsetup eject exim4 exim4-base exim4-config
  exim4-daemon-light fontconfig-config fuse-utils gcc gcc-4.4-base gconf2 gdbserver
  geany-common ghostscript gstreamer0.10-pulseaudio heirloom-mailx imagemagick iso-codes
  libaa1 libaiksaurus-1.2-0c2a libapr1 libarchive1 libasyncns0 libavahi-client3
  libavcodec52 libavformat52 libavutil49 libblas3gf libbonoboui2-common
  libboost-iostreams1.42.0 libbz2-1.0 libc6 libc6-i686 libcaca0 libcap-ng0 libcap2
  libclass-accessor-perl libcpufreq0 libcupsimage2 libdjvulibre21 libdrm-intel1
  libdvbpsi6 libdvdnav4 libedit2 libept1 libesd0 libfaad2 libfont-afm-perl libfontenc1
  libglew1.5 libglewmx1.5 libglib2.0-0 libgnome-keyring0 libgnome2-0
  libgoffice-0.8-8-common libgomp1 libgphoto2-2 libgphoto2-port0 libhtml-format-perl
  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhtml-tree-perl libice6
  libicu44 libid3tag0 libilmbase6 libio-string-perl libiso9660-7 libiw30 libjbig2dec0
  libkrb5-3 liblcms1 libldap-2.4-2 liblocale-gettext-perl liblockfile1 liblqr-1-0
  liblua5.1-0 libmad0 libmailtools-perl libmikmod2 libmozjs11d libmpeg2-4 libmpfr4
  libncursesw5 libnm-glib-vpn1 libnm-glib2 libnspr4-0d libnss3 libnss3-1d libntfs-3g75
  libobparser21 libopenobex1 libparse-debianchangelog-perl libpciaccess0 libpcre3
  libpcsclite1 libpixman-1-0 libpkcs11-helper1 libpng12-0 libpolkit-gobject-1-0
  libpostproc51 libqt4-qt3support libqt4-xml librpm1 libsdl-ttf2.0-0 libselinux1 libsm6
  libspectre1 libssh2-1 libstdc++6 libsub-name-perl libswscale0 libtag1c2a libtalloc2
  libtext-charwidth-perl libutempter0 libv8-2.2.24 libvlccore4 libvorbis0a libvpx1
  libwebkit-1.0-common libwnck-common libwpd8c2a libwrap0 libwww-perl libx11-data
  libx11-xcb1 libxau6 libxcursor1 libxdot4 libxfconf-0-2 libxml-namespacesupport-perl
  libxml-parser-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl libxt6
  libxtst6 libxxf86vm1 linux-base lockfile-progs make makedev mime-support netpbm
  network-manager-openvpn openvpn-blacklist p7zip-full perl policykit-1 powermgmt-base
  pptp-linux pulseaudio pulseaudio-esound-compat python-apt python-apt-common
  python-chardet python-debian python-gconf python-libxml2 python-numpy python-xapian
  readline-common samba-common-bin sysvinit-utils thunar-data tsconf ttf-aenigma
  ttf-dejavu-core ttf-lyx udev usb-modeswitch-data usbmuxd util-linux x11-xfs-utils
  xbitmaps xfonts-utils xml-core xorg-docs-core xserver-xorg-video-ati
  xserver-xorg-video-chips xserver-xorg-video-geode xserver-xorg-video-i740
  xserver-xorg-video-intel xserver-xorg-video-mach64 xserver-xorg-video-nv
  xserver-xorg-video-s3 xserver-xorg-video-siliconmotion xserver-xorg-video-trident
  xserver-xorg-video-tseng xterm
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom debtags aspell-doc spellutils
  avahi-autoipd bash-doc binutils-doc apcupsd moc mpd anacron checksecurity defoma-doc
  psfontmgr x-ttcidfont-conf dfontmgr cdtool setcd mail-reader eximon4 exim4-doc-html
  exim4-doc-info spf-tools-perl swaks gcc-multilib autoconf automake1.9 libtool flex
  bison gcc-doc gconf-defaults-service imagemagick-doc autotrace cups-bsd lpr lprng
  enscript ffmpeg gnuplot grads hp2xx html2ps libwmf-bin mplayer povray radiance
  sane-utils texlive-base-bin transfig isoquery glibc-doc esound-clients esound
  glew-utils gphoto2 gtkam libdata-dump-perl libipc-sharedcache-perl krb5-doc krb5-user
  liblcms-utils pcscd libspectre1-dbg libcrypt-ssleay-perl libio-socket-ssl-perl make-doc
  p7zip-rar perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl pavumeter
  pavucontrol paman paprefs python-apt-dbg python-apt-doc python-gnome2-doc
  python-numpy-doc python-numpy-dbg python-nose python-dev gfortran xapian-doc sash
  util-linux-locales debhelper xorg-docs xfonts-cyrillic
Recommended packages:
  mailx xserver-xorg-video-cyrix xserver-xorg-video-nsc
The following packages will be REMOVED:
  abiword abiword-plugin-mathview cairo-compmgr-core catfish chromium-browser conky-all
  crunchbang-bin-scripts crunchbang-extra-themes evince exo-utils fbxkb file-roller
  gcalctool gdm gdm-themes geany geany-plugin-addons geany-plugin-codenav
  geany-plugin-extrasel geany-plugin-gdb geany-plugin-lipsum geany-plugin-prettyprinter
  geany-plugin-prj geany-plugin-sendmail geany-plugin-treebrowser
  geany-plugin-updatechecker geany-plugin-vc geany-plugin-webhelper geany-plugins-common
  gftp-gtk gigolo gimp gimp-gmic gimp-plugin-registry gmrun gnome-bluetooth
  gnome-icon-theme gnome-keyring gnome-user-guide gnumeric google-chrome-stable gparted
  grandr gsimplecal gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf gtrayicon
  human-icon-theme iceweasel libabiword-2.8 libaiksaurusgtk-1.2-0c2a libbonoboui2-0
  libcairo-compmgr0 libcairo2 libcairomm-1.0-1 libevince2 libgail18 libgcr0 libgegl-0.0-0
  libgimp2.0 libgksu2-0 libglade2-0 libgnome2-canvas-perl libgnome2-perl
  libgnomecanvas2-0 libgnomeui-0 libgoffice-0.8-8 libgtk2-perl libgtk2.0-0 libgtkglext1
  libgtkmm-2.4-1c2a libgtkspell0 libmagickcore3-extra libnotify1 libobrender21
  libobrender27 libpango-perl libpango1.0-0 libpangomm-1.4-1 libpoppler-glib4 librsvg2-2
  librsvg2-common libsexy2 libthunar-vfs-1-2 libunique-1.0-0 libwmf0.2-7 libwv-1.2-3
  libwxgtk2.8-0 libxfcegui4-4 network-manager-openvpn-gnome network-manager-vpnc-gnome
  obconf obmenu openbox-themes parcellite policykit-1-gnome python-cairo python-glade2
  python-gnome2 python-gtk2 python-keybinder python-vte python-wxgtk2.8 statler-ui-theme
  synaptic tangerine-icon-theme terminator thunar thunar-archive-plugin thunar-dropbox
  thunar-thumbnailers tint2 tint2conf transmission-gtk viewnior xfburn xfce4-panel
  xfce4-power-manager xfce4-screenshooter xscreensaver-data xulrunner-10.0 yelp
The following NEW packages will be installed:
  apache2-mpm-worker apache2.2-bin apache2.2-common apt-utils aptitude aptitude-doc-en
  aspell avahi-daemon bash binutils ca-certificates chromium-browser-inspector conky-std
  console-terminus cpio cron defoma dmsetup eject exim4 exim4-base exim4-config
  exim4-daemon-light fontconfig-config fuse-utils gcc gcc-4.4-base gconf2 gdbserver
  geany-common ghostscript gstreamer0.10-pulseaudio heirloom-mailx imagemagick iso-codes
  libaa1 libaiksaurus-1.2-0c2a libapr1 libarchive1 libasyncns0 libavahi-client3
  libavformat52 libblas3gf libbonoboui2-common libboost-iostreams1.42.0 libbz2-1.0 libc6
  libc6-i686 libcaca0 libcap-ng0 libcap2 libclass-accessor-perl libcpufreq0 libcupsimage2
  libdjvulibre21 libdrm-intel1 libdvbpsi6 libdvdnav4 libedit2 libept1 libesd0 libfaad2
  libfont-afm-perl libfontenc1 libglew1.5 libglewmx1.5 libglib2.0-0 libgnome-keyring0
  libgnome2-0 libgoffice-0.8-8-common libgomp1 libgphoto2-2 libgphoto2-port0
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  libhtml-tree-perl libice6 libicu44 libid3tag0 libilmbase6 libio-string-perl
  libiso9660-7 libiw30 libjbig2dec0 libkrb5-3 liblcms1 libldap-2.4-2
  liblocale-gettext-perl liblockfile1 liblqr-1-0 liblua5.1-0 libmad0 libmailtools-perl
  libmikmod2 libmozjs11d libmpeg2-4 libmpfr4 libncursesw5 libnm-glib-vpn1 libnm-glib2
  libnspr4-0d libnss3 libntfs-3g75 libobparser21 libopenobex1
  libparse-debianchangelog-perl libpciaccess0 libpcre3 libpcsclite1 libpixman-1-0
  libpkcs11-helper1 libpng12-0 libpostproc51 libqt4-qt3support libqt4-xml librpm1
  libsdl-ttf2.0-0 libselinux1 libsm6 libspectre1 libssh2-1 libstdc++6 libsub-name-perl
  libtag1c2a libtalloc2 libtext-charwidth-perl libutempter0 libv8-2.2.24 libvlccore4
  libvorbis0a libvpx1 libwebkit-1.0-common libwnck-common libwpd8c2a libwrap0 libwww-perl
  libx11-data libx11-xcb1 libxau6 libxcursor1 libxdot4 libxfconf-0-2
  libxml-namespacesupport-perl libxml-parser-perl libxml-sax-expat-perl libxml-sax-perl
  libxml-simple-perl libxt6 libxtst6 libxxf86vm1 linux-base lockfile-progs make makedev
  mime-support netpbm network-manager-openvpn openvpn-blacklist p7zip-full perl
  policykit-1 powermgmt-base pptp-linux pulseaudio pulseaudio-esound-compat python-apt
  python-apt-common python-chardet python-debian python-gconf python-libxml2 python-numpy
  python-xapian readline-common samba-common-bin sysvinit-utils thunar-data tsconf
  ttf-aenigma ttf-dejavu-core ttf-lyx udev usb-modeswitch-data usbmuxd util-linux
  x11-xfs-utils xbitmaps xfonts-utils xml-core xorg-docs-core xserver-xorg-video-ati
  xserver-xorg-video-chips xserver-xorg-video-geode xserver-xorg-video-i740
  xserver-xorg-video-intel xserver-xorg-video-mach64 xserver-xorg-video-nv
  xserver-xorg-video-s3 xserver-xorg-video-siliconmotion xserver-xorg-video-trident
  xserver-xorg-video-tseng xterm
The following packages will be upgraded:
  libavcodec52 libavutil49 libnss3-1d libpolkit-gobject-1-0 libswscale0
5 upgraded, 204 newly installed, 123 to remove and 31 not upgraded.
23 not fully installed or removed.
Need to get 0 B/108 MB of archives.
After this operation, 192 MB disk space will be freed.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 60919 files and directories currently installed.)
Unpacking libc6 (from .../libc6_2.11.3-4_i386.deb) ...

A non-dpkg owned copy of the libc6-i686 package was found.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.11.3-4_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.11.3-4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



EDIT: If I can't fix this by the end of the day, I'm just reinstalling the whole OS, I don't have anything to loose... yet.
EDITEDIT:Lose*

Last edited by HappyTheCat; 11-02-2012 at 07:55 PM.
 
Old 11-02-2012, 07:57 PM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,385

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
A non-dpkg owned copy of the libc6-i686 package was found.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
Yes, you broke it.
Reinstall.
 
1 members found this post helpful.
Old 11-02-2012, 08:26 PM   #8
HappyTheCat
LQ Newbie
 
Registered: Nov 2012
Distribution: Crunchbang 10
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Yes, you broke it.
Reinstall.
Yeah I guess Ill do that... Damn...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to fix Broken packages -f prickee Debian 12 05-11-2011 07:20 AM
Fix broken packages ervini Linux Mint 1 12-18-2010 07:59 PM
Fix broken packages ervini LQ Suggestions & Feedback 1 12-18-2010 06:53 PM
could not apply changes. Fix broken packages first amritpalpathak Linux - Software 2 04-24-2010 12:32 AM
Duplicate librsvg2 packages - removal causes scriplet failed - exit status 1 trekk Fedora 2 11-08-2006 07:42 PM


All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration