LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2014, 03:26 AM   #1
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Rep: Reputation: Disabled
Question DPKG returning error code while processing linux-image


Hey, I've been trying to upgrade an old version of linux mint 12 to the LTS version, 13 (based of Ubuntu 11.10 to 12.04). However, the following error pops up, and despite my googling (everybody telling me to run install -f and dpkg --configure -a but nothing seems to have helped. Has anybody got any ideas ?

Code:
sudo apt-get install -f
[sudo] password for sufy: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.2.0-64-generic (3.2.0-64.97) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-64-generic
Warning: No support for locale: en_AU.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-64-generic...
P: Writing config for /boot/vmlinuz-3.0.0-22-generic...
P: Writing config for /boot/vmlinuz-3.0.0-12-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
/etc/grub.d/10_linux: 24: .: Can't open /usr/share/grub/grub-mkconfig_lib
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-64-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-64-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.2.0-64-generic; however:
  Package linux-image-3.2.0-64-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.64.76); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Errors were encountered while processing:
 linux-image-3.2.0-64-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
~ $ sudo dpkg --configure -a
Setting up linux-image-3.2.0-64-generic (3.2.0-64.97) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-64-generic
Warning: No support for locale: en_AU.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-64-generic...
P: Writing config for /boot/vmlinuz-3.0.0-22-generic...
P: Writing config for /boot/vmlinuz-3.0.0-12-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
/etc/grub.d/10_linux: 24: .: Can't open /usr/share/grub/grub-mkconfig_lib
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-64-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-64-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.2.0-64-generic; however:
  Package linux-image-3.2.0-64-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.64.76); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.2.0-64-generic
 linux-image-generic
 linux-generic
Code:
sudo apt-get -f dist-upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  mate-notification-daemon sessioninstaller
The following packages will be upgraded:
  locales
1 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.
3 not fully installed or removed.
Need to get 0 B/3,359 kB of archives.
After this operation, 53.2 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 318549 files and directories currently installed.)
Preparing to replace locales 2.13+git20110622-2 (using .../locales_2.13+git20120306-3_all.deb) ...
Unpacking replacement locales ...
Processing triggers for man-db ...
Setting up linux-image-3.2.0-64-generic (3.2.0-64.97) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-64-generic
Warning: No support for locale: en_AU.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-64-generic...
P: Writing config for /boot/vmlinuz-3.0.0-22-generic...
P: Writing config for /boot/vmlinuz-3.0.0-12-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
/etc/grub.d/10_linux: 24: .: Can't open /usr/share/grub/grub-mkconfig_lib
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-64-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-64-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.2.0-64-generic; however:
  Package linux-image-3.2.0-64-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.64.76); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up locales (2.13+git20120306-3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... done
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... done
  en_ZM.UTF-8... up-to-date
  en_ZW.UTF-8... done
Generation complete.
Errors were encountered while processing:
 linux-image-3.2.0-64-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Last edited by steak1987; 06-21-2014 at 03:33 AM. Reason: adding dist-update
 
Old 06-21-2014, 03:37 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I've experienced issues like this before. Normally it's mid-upgrade, as in you're trying to upgrade before all the needed things have been updated on the repository. Or there's two packages that depend on each other, but wont install quietly until one or the other is the latest version.

In the former just wait and update / upgrade again. In the latter you can dpkg --force -i the *.deb for the packages from /var/cache/apt/archives/. Probably doing it twice so the "setup" phase bothers running. Although most times I only run into issues like that if it's been a really long time since I brought things up to date.
 
Old 06-22-2014, 10:05 AM   #3
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled
Oh great, another problem came up. I tried to force an update, and as a part of it, it must have removed my linux kernel. I tried following the guide written here:
http://askubuntu.com/questions/28099...ng-all-kernels

I still get the following errors:

Code:
this / # apt-get install -f linux-image-3.0.0-22-generic 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-3.0.0-22-generic is already the newest version.
The following packages will be REMOVED:
  linux-image-3.0.0-12-generic linux-image-3.0.0-22-generic
0 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
5 not fully installed or removed.
After this operation, 303 MB disk space will be freed.
Do you want to continue [Y/n]? Y
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 271228 files and directories currently installed.)
Removing linux-image-3.0.0-12-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
update-initramfs: Deleting /boot/initrd.img-3.0.0-12-generic
run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-64-generic...
P: Writing config for /boot/vmlinuz-3.1.4-030104-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
/etc/grub.d/10_linux: 24: .: Can't open /usr/share/grub/grub-mkconfig_lib
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-12-generic.postrm line 328.
dpkg: error processing linux-image-3.0.0-12-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.0.0-22-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-22-generic /boot/vmlinuz-3.0.0-22-generic
update-initramfs: Deleting /boot/initrd.img-3.0.0-22-generic
run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-22-generic /boot/vmlinuz-3.0.0-22-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.2.0-64-generic...
P: Writing config for /boot/vmlinuz-3.1.4-030104-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.0.0-22-generic /boot/vmlinuz-3.0.0-22-generic
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
/etc/grub.d/10_linux: 24: .: Can't open /usr/share/grub/grub-mkconfig_lib
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-22-generic.postrm line 328.
dpkg: error processing linux-image-3.0.0-22-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.0.0-12-generic
 linux-image-3.0.0-22-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 06-22-2014, 11:00 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
/dev/pts not mounted? Something tells me that you're not telling us the full story. Are you doing this in a vm? in a chroot? with ppa's added to the sources.list? But to hopefully further you down the road, it couldn't find parts of grub, so you will need to reinstall grub to have those parts to be found. The package for grub, not really a need to play with the MBR portion.

The contents of your /etc/apt/sources.list would be useful here as it will tell us what flavour of distro and other things that might be contributing to your conflicted state of things. But a bit of warning, playing with kernels and bootloaders is dangerous ground. Have a backup plan and/or alternative boot options to recover from unforseen circumstances.

Beyond that you could try to apt-get install the kernel image that it's trying to purge which will label it as manually installed and potentially head off a few road hazards. The kernel versions in play seem to suggest a debian squeeze to wheezy upgrade. But just a guess.
 
Old 06-23-2014, 06:53 AM   #5
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled
I was doing it under chroot. I didnt mount /dev/pts simply because the guide didnt mention it?
I've decided to stop messing about with my system until I get a HDD and backup all my data to it. Till then ill be running linux of a USB drive.

Honestly, I think the easiest solution after doing a backup will be just to do a fresh install of ubuntu/mint LTS. But thanks for your help.
 
Old 06-24-2014, 12:04 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The /dev/pts is mainly if you chroot under a gui and want to do something gui-ish from the chroot. Which gets extra noisy per say in that you'll need proc dev dev/pts and also run sys tmp, maybe opt to be shared with the host system. And if you want to actually run gui apps, you need to cp the .Xauthority from the host system of the user who started X. Change the perms on it to the user with the copy. And set the DISPLAY and XAUTHORITY variables while that user before you can successfully use the gui application. But it's a neat trick if you need to run one gui app from another distro once in a while. With a CLI only debootstrap install just /proc/ and /dev/ is good enough to get most things done to a bootable state.
 
1 members found this post helpful.
Old 06-26-2014, 01:42 PM   #7
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled
Hey, sorry for the late reply, I decided to take a stab at it again.
This is my sources.lst

Code:
###old ones###
#deb http://packages.linuxmint.com/ lisa main upstream import
#deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
#deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
#deb http://archive.canonical.com/ubuntu/ oneiric partner
#deb http://packages.medibuntu.org/ oneiric free non-free

# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games
#deb http://overviewer.org/debian ./

#deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
#deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe

#deb http://mirror.aarnet.edu.au/pub/ubuntu/archive/ oneiric main
#deb-src http://mirror.aarnet.edu.au/pub/ubuntu/archive/ oneiric main


#deb http://packages.linuxmint.com/ maya main upstream import
#deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
#deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
#deb http://archive.canonical.com/ubuntu/ precise partner
#deb http://packages.medibuntu.org/ precise free non-free

# deb http://archive.getdeb.net/ubuntu precise-getdeb apps
# deb http://archive.getdeb.net/ubuntu precise-getdeb games

#######new list#######

#mint-1 ~ # cat /etc/apt/sources.list
deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free

#deb http://packages.linuxmint.com/ lisa main upstream import
#deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
#deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
#deb http://archive.canonical.com/ubuntu/ oneiric partner
#deb http://packages.medibuntu.org/ oneiric free non-free

# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games

#deb http://gb.archive.ubuntu.com/ubuntu/ natty main
#deb http://gb.archive.ubuntu.com/ubuntu/ natty universe
So, my question is, what do I need to do to resolve the dependency/grub issues, reinstall the kernels and boot into my old setup again ?

Last edited by steak1987; 06-26-2014 at 01:42 PM. Reason: sources.lst
 
Old 06-27-2014, 02:53 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I suppose that if I were doing it, something like.

$ sudo apt-get install dselect
$ sudo dpkg --clear-avail
$ sudo dselect update
$ sudo apt-get dist-upgrade

$ dpkg-query --load-avail -l '*linux*image*'
(select an appropriate kernel that exists in the repository)
$ sudo apt-get install linux-image-686

Which should run grub after it (if installed). You might want to clear out any OLD kernels. Save one that you know works until you have a system that you can live with. A backup bootloader can help as well, usb drives are good for things like that. Always have a backup / recovery plan. The use of dpkg --force-all --purge <package> and dpkg --force-all -i <package.deb> can be useful for getting over a few speed bumps. Just don't use it on libc or the currently running kernel. And at this point a fresh install might be the quicker option.
 
Old 06-28-2014, 08:42 AM   #9
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled
Code:
apt-get install dselect
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-3.0.0-12-generic linux-image-3.0.0-22-generic
The following NEW packages will be installed:
  dselect
0 to upgrade, 1 to newly install, 2 to remove and 2 not to upgrade.
5 not fully installed or removed.
Need to get 184 kB of archives.
After this operation, 301 MB disk space will be freed.
Do you want to continue [Y/n]? Y
Err http://archive.ubuntu.com/ubuntu/ precise-updates/main dselect amd64 1.16.1.2ubuntu7.5
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ precise-security/main dselect amd64 1.16.1.2ubuntu7.5
  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dselect_1.16.1.2ubuntu7.5_amd64.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Now im stuck again :-/

There might be a better way to do this. Can I backup my installed programs elsewhere, and then re-insall linux mint 12, and the restore my programs back onto the new installation ? Re-installing lint should touch /home should it ?

Last edited by steak1987; 06-28-2014 at 08:51 AM.
 
Old 06-28-2014, 10:29 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
In your error you can't resolve the names of the sites. AKA your DNS isn't active, and likely your entire network stack. Your /home should be untouched by updates, save a few ~/.config/* type stuff for apps that run AFTER the upgrade.

$ dpkg --get-selections | tee what_is_installed.txt

And copy your /home/ contents and probably /etc/ contents, not that you'll use the /etc/, but you may have done something custom and need the reference. On the fresh install you'd use the --set-selections option to have the same apps installed. Or at least the subset of those apps that it can figure out. I'd recommend doing a fresh install on another storage device which leaves you free to reference the old install before, during, and after the new install.

A fresh install should be done on a clean filesystem, not over an existing distro broken or not. I'm just trying to visualize how you got to your current state, and that would be one possible way. Another might be not updating your distro at least once a year. Which creates a test condition that developers cannot or will not test.
 
Old 06-28-2014, 12:38 PM   #11
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled
I made the foolish decision of not upgrading my NON LTS distro for over 2 years (bad experience with prior upgrade) till the time came when all the repositories for my distro were undestandably taken offline. The main thing im really concerned for are my firefox and chrome profiles. Thats really the only reason I need to be able to boot into my old system.
 
Old 06-28-2014, 10:39 PM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
That's probably salvage-able, and might be as simple as copying the ~/.mozilla directory and contents. And whatever chrome stores things as. Assuming a fresh destination install that doesn't have any conflicting files and content. But you can create new users to avoid that overlay. Definitely operate as much as you can from a "copy" of the botched install. So you can always return to fixed point in time until you have the elements that you need.

But that's probably why I don't get too involved in profiles and the likes, I know I'll be moving on eventually. As I look at moving what I might call a profile to SDHC cards that boot on a raspberry pi. For those non-profit websites that I might update once a month, that I don't really need to reside on my primary personal machine. That I would otherwise have to chroot into the OLD install(s) to manage. It's not like I need to use a 100W+ gaming-ish machine to edit, view, and upload text.

Last edited by Shadow_7; 06-28-2014 at 10:49 PM.
 
Old 06-30-2014, 05:54 AM   #13
steak1987
Member
 
Registered: Jan 2012
Posts: 130

Original Poster
Rep: Reputation: Disabled
Ill update this thread when I get a new HDD and when I attempt to see if I can resurrect the contents of my old profiles.
 
  


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
[SOLVED] dpkg: error processing dictionaries-common cccc Debian 3 03-16-2013 06:53 AM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
[SOLVED] dpkg: error processing dict-xdict 1991sudarshan Linux - Newbie 4 10-23-2011 04:31 AM
dpkg returning an error code (1) ???????? william11 Linux - General 11 08-14-2011 12:18 PM
dpkg: error processing libc6 linux-ibook Debian 5 12-15-2005 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:58 AM.

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
Open Source Consulting | Domain Registration