Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need some help on how to fix this problem. I ran the following.

wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get update
Fetched 674 kB in 4s (141 kB/s)
Reading package lists... Done
wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get clean
wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get -f remove linux-image-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-generic : Depends: linux-image-generic (= 3.8.0.27.45) but it is not going to be installed
 linux-image-extra-3.8.0-27-generic : Depends: linux-image-3.8.0-27-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get -f remove linux-image-extra-3.8.0-27-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-generic : Depends: linux-image-3.8.0-27-generic but it is not going to be installed
                       Depends: linux-image-extra-3.8.0-27-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-image-extra-3.8.0-27-generic : Depends: linux-image-3.8.0-27-generic but it is not installed
 linux-image-generic : Depends: linux-image-3.8.0-27-generic but it is not installed
E: Unmet dependencies. Try using -f.
wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get -f install
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:
  libavahi-ui-gtk3-0 libblas3gf libcelt0-0 libfm-gtk1 libfm1 libgdu-gtk0
  libgrail5 libkms1 libllvm3.1 libmenu-cache1 libmjpegtools-1.9 libntfs10
  libopencv-calib3d2.3 libopencv-core2.3 libopencv-features2d2.3
  libopencv-flann2.3 libopencv-highgui2.3 libopencv-imgproc2.3
  libopencv-objdetect2.3 libopenspc0 libqpdf8 libsox1b libtbb2 libunique-3.0-0
  libwebp2 libx264-120 linux-headers-3.5.0-37 linux-headers-3.5.0-37-generic
  python3.2 python3.2-minimal
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-image-3.8.0-27-generic
Suggested packages:
  fdutils linux-doc-3.8.0 linux-source-3.8.0 linux-tools
The following NEW packages will be installed:
  linux-image-3.8.0-27-generic
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
3 not fully installed or removed.
Need to get 12.1 MB of archives.
After this operation, 26.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ raring-updates/main linux-image-3.8.0-27-generic i386 3.8.0-27.40 [12.1 MB]
Fetched 12.1 MB in 15s (794 kB/s)                                              
(Reading database ... 333748 files and directories currently installed.)
Unpacking linux-image-3.8.0-27-generic (from .../linux-image-3.8.0-27-generic_3.8.0-27.40_i386.deb) ...
This kernel does not support a non-PAE CPU.
dpkg: error processing /var/cache/apt/archives/linux-image-3.8.0-27-generic_3.8.0-27.40_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-27-generic /boot/vmlinuz-3.8.0-27-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-27-generic /boot/vmlinuz-3.8.0-27-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.8.0-27-generic_3.8.0-27.40_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get install linux-image-486
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-486
wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-image-extra-3.8.0-27-generic : Depends: linux-image-3.8.0-27-generic but it is not installed
 linux-image-generic : Depends: linux-image-3.8.0-27-generic but it is not installed
E: Unmet dependencies. Try using -f.

wbmc@wbmc-ThinkPad-R51:~$ cat /etc/apt/sources.list
# deb cdrom:[Xubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted
deb http://us.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring universe
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu quantal main
# deb-src http://extras.ubuntu.com/ubuntu quantal main
share|improve this question
    
@Braiam added recent request –  user182155 Aug 7 '13 at 20:18
    
What's the output of lsb_release -c? –  Braiam Aug 7 '13 at 20:27
    
@Braiam the output is raring (I had tried updating to 13.04 but the install failed) –  user182155 Aug 8 '13 at 17:31
    
If you have a Thinkpad or a Pentium M processor, the way to go is using fake-pae. Please read this post in the forums. –  Braiam Aug 8 '13 at 18:04
add comment

1 Answer

Your CPU don't support PAE (Physical Address Extension) kernels, hence the installation of any linux-image-*-generic fails. So, lets start correcting the package dependency:

sudo apt-get update
sudo apt-get clean
sudo apt-get -f remove linux-image-generic
sudo apt-get -f remove linux-image-extra-3.8.0-27-generic
sudo apt-get autoremove
sudo apt-get -f install
sudo apt-get install linux-image-486
sudo apt-get upgrade

This should remove the problematic package (linux-image-extra-3.8.0-27-generic) and give you a clean tree dependency. The linux-image-486 depends of the latest non-PAE kernel.

How to know if your CPU supports PAE

PAE is a method to allow 32-bit CPU's to access a physical address space larger than 4 gigabytes. Meaning that you don't need a 64-bit CPU to use more than 3.something GigaBytes of RAM. The best method to discover if your cpu supports PAE is:

cat /proc/cpuinfo | grep --color pae
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl tm2 cid cx16 xtpr
                                     ^^^

Otherwise, it will return you to the prompt.

share|improve this answer
    
Thanks @Braiam. Unfortunately it did not work. update and clean both worked, but the rest of the commands returned errors. –  user182155 Aug 7 '13 at 16:56
    
autoremove error: wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-image-extra-3.8.0-27-generic : Depends: linux-image-3.8.0-27-generic but it is not installed linux-image-generic : Depends: linux-image-3.8.0-27-generic but it is not installed E: Unmet dependencies. Try using -f. –  user182155 Aug 7 '13 at 17:02
    
yes: wbmc@wbmc-ThinkPad-R51:~$ sudo apt-get remove linux-image-extra-3.8.0-27-genericReading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-image-generic : Depends: linux-image-3.8.0-27-generic but it is not going to be installed Depends: linux-image-extra-3.8.0-27-generic but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). –  user182155 Aug 7 '13 at 17:10
    
still no, see updated question –  user182155 Aug 7 '13 at 18:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.