Emacs installation in Ubuntu (2)

Source: Internet
Author: User
Tags gtk

I used a method in China before, but I think this method is simpler and more direct and contributes.

You need to enable both universe & multiverse in/etc/APT/sources. List. From a prompt, run

Code:
sudo nano -Bw /etc/apt/sources.list

Then, remove the # In front of all the lines with Deb at the beginning. save and exit with <Ctrl> O and <Ctrl> X. now, see if you can install Emacs again.

Code:
sudo aptitude updatesudo aptitude install emacs

Tangshuang @ tangshuang-desktop :~ $ Sudo aptitude update
[Sudo] password for tangshuang:
Editing extended status information... complete
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty release. GPG
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/main Translation-zh_CN
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/restricted Translation-zh_CN
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty release
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/main packages
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/restricted packages
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/main packages
Ignore CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/restricted packages
Error CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/main packages
Use apt-CDROM to enable apt to recognize the disc. Apt-Get upgdate cannot be used to add a new disc.
Error CDROM: // Ubuntu 9.04 _ jaunty jackalope _-release i386 (20090420.1) jaunty/restricted packages
Use apt-CDROM to enable apt to recognize the disc. Apt-Get upgdate cannot be used to add a new disc.
Hit http://cn.archive.ubuntu.com jaunty release. GPG
Hit http://cn.archive.ubuntu.com jaunty/main Translation-zh_CN
Hit http://cn.archive.ubuntu.com jaunty/restricted Translation-zh_CN
Hit http://cn.archive.ubuntu.com jaunty/Universe Translation-zh_CN
Hit http://cn.archive.ubuntu.com jaunty/multiverse Translation-zh_CN
Hit http://cn.archive.ubuntu.com jaunty-Updates release. GPG
Ignore http://cn.archive.ubuntu.com jaunty-updates/main Translation-zh_CN
Ignore http://cn.archive.ubuntu.com jaunty-updates/restricted Translation-zh_CN
Ignore http://cn.archive.ubuntu.com jaunty-updates/Universe Translation-zh_CN
Ignore http://cn.archive.ubuntu.com jaunty-updates/multiverse Translation-zh_CN
Read: 1 http://cn.archive.ubuntu.com jaunty-backports release. GPG [189b]
Ignore http://cn.archive.ubuntu.com jaunty-backports/main Translation-zh_CN
Ignore http://cn.archive.ubuntu.com jaunty-backports/restricted Translation-zh_CN
Ignore http://cn.archive.ubuntu.com jaunty-backports/Universe Translation-zh_CN
Ignore http://cn.archive.ubuntu.com jaunty-backports/multiverse Translation-zh_CN
Hit http://cn.archive.ubuntu.com jaunty release
Hit http://cn.archive.ubuntu.com jaunty-Updates release
Read: 2 http://cn.archive.ubuntu.com jaunty-backports release [49.6kb]
Hit http://cn.archive.ubuntu.com jaunty/main packages
Hit http://cn.archive.ubuntu.com jaunty/restricted packages
Hit http://cn.archive.ubuntu.com jaunty/Main Sources
Hit http://cn.archive.ubuntu.com jaunty/restricted sources
Hit http://cn.archive.ubuntu.com jaunty/Universe packages
Hit http://cn.archive.ubuntu.com jaunty/Universe sources
Hit http://cn.archive.ubuntu.com jaunty/multiverse packages
Hit http://cn.archive.ubuntu.com jaunty/multiverse sources
Hit http://cn.archive.ubuntu.com jaunty-updates/main packages
Hit http://cn.archive.ubuntu.com jaunty-updates/restricted packages
Hit http://cn.archive.ubuntu.com jaunty-updates/Main Sources
Hit http://cn.archive.ubuntu.com jaunty-updates/restricted sources
Hit http://cn.archive.ubuntu.com jaunty-updates/Universe packages
Hit http://cn.archive.ubuntu.com jaunty-updates/Universe sources
Hit http://cn.archive.ubuntu.com jaunty-updates/multiverse packages
Hit http://cn.archive.ubuntu.com jaunty-updates/multiverse sources
Read: 3 http://cn.archive.ubuntu.com jaunty-backports/main packages [56.3kb]
4 http://cn.archive.ubuntu.com jaunty-backports/restricted packages [14B]
Read: 5 http://cn.archive.ubuntu.com jaunty-backports/Universe packages [21.4kb]
Read: 6 http://archive.canonical.com jaunty release. GPG [189b]
Ignore http://archive.canonical.com jaunty/partner Translation-zh_CN
Read: 7 http://cn.archive.ubuntu.com jaunty-backports/multiverse packages [14B]
Read: 8 http://cn.archive.ubuntu.com jaunty-backports/main sources [11.1kb]
Read: 9 http://cn.archive.ubuntu.com jaunty-backports/restricted sources [14B]
Read: 10 http://cn.archive.ubuntu.com jaunty-backports/Universe sources [4566b]
Read: 11 http://cn.archive.ubuntu.com jaunty-backports/multiverse sources [14B]
Hit http://security.ubuntu.com jaunty-security release. GPG
Ignore http://security.ubuntu.com jaunty-Security/main Translation-zh_CN
Read: 12-http://archive.canonical.com jaunty release [10.5kb]
Ignore http://security.ubuntu.com jaunty-Security/restricted Translation-zh_CN
Ignore http://security.ubuntu.com jaunty-Security/Universe Translation-zh_CN
Ignore http://security.ubuntu.com jaunty-Security/multiverse Translation-zh_CN
Hit http://security.ubuntu.com jaunty-security release
Hit http://security.ubuntu.com jaunty-Security/main packages
Hit http://security.ubuntu.com jaunty-Security/restricted packages
Hit http://security.ubuntu.com jaunty-Security/Main Sources
Read: 13 http://archive.canonical.com jaunty/partner packages [3320b]
Hit http://security.ubuntu.com jaunty-Security/restricted sources
Hit http://security.ubuntu.com jaunty-Security/Universe packages
Hit http://security.ubuntu.com jaunty-Security/Universe sources
Hit http://security.ubuntu.com jaunty-Security/multiverse packages
Hit http://security.ubuntu.com jaunty-Security/multiverse sources
Read: 14 http://archive.canonical.com jaunty/partner sources [1555b]
Downloaded 159kb, time consumed 7 S (Bytes 5kb/s)
Reading the package list... complete

Current status: 1 Updated [+ 1], 15 new software packages [+ 15].
Tangshuang @ tangshuang-desktop :~ $ Sudo aptitude install Emacs
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
Reading extended state file
Initializing package status... complete
The following "new" software packages will be installed.
Emacs emacs22-bin-common {A} emacs22-common {A} emacs22-gtk {}
Emacsen-common {}
The following software packages will be deleted ":
Linux-headers-2.6.28-11 {u} linux-headers-2.6.28-11-generic {u}
Only some of the following installed software packages will be configured:
Linux-generic linux-headers-2.6.28-15-generic Linux-headers-generic
Linux-image-2.6.28-15-generic Linux-image-generic
Linux-restricted-modules-2.6.28-15-generic
Linux-restricted-modules-generic
0 software packages are upgraded, 5 are newly installed, 2 are deleted, and 1 is not upgraded.
You need to obtain an archive of 21.0 MB. KB will be released after unpacking.
Do you want to continue? [Y/n/?] Y
Editing extended status information... complete
Read: 1 http://cn.archive.ubuntu.com jaunty/main emacsen-common 1.4.17 [17.6kb]
Read: 2 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8 MB]
Read: 3 http://cn.archive.ubuntu.com jaunty/main emacs22-bin-common 22.2-0ubuntu2 [168kb]
Read: 4 http://cn.archive.ubuntu.com jaunty/Universe emacs22-gtk 22.2-01_tu2 [1980kb]
Read: 5 http://cn.archive.ubuntu.com jaunty/main Emacs 22.2-0ubuntu2 [6362b]
Downloaded 21.0 MB, which takes 2 min 30 s (139kb/s)
(Reading the database... the system currently has a total of 119521 files and directories installed .)
Deleting linux-headers-2.6.28-11-generic...
Deleting linux-headers-2.6.28-11...
Selected the software package emacsen-common that was canceled.
(Reading the database... the system currently has a total of 103220 files and directories installed .)
Extracting emacsen-common (from.../emacsen-common_1.4.17_all.deb )...
Selected the software package emacs22-common that was deselected.
Extracting the emacs22-common (from.../emacs22-common_22.2-0ubuntu2_all.deb )...
Selected the software package emacs22-bin-common that was deselected.
Extracting the emacs22-bin-common (from.../emacs22-bin-common_22.2-0ubuntu2_i386.deb )...
Selected the software package emacs22-gtk that was deselected.
Extracting the emacs22-gtk (from.../emacs22-gtk_22.2-0ubuntu2_i386.deb )...
Selected the unselected Software Package Emacs.
Extracting Emacs (from.../emacs_22.2-0ubuntu2_all.deb )...
Processing the trigger for man-DB...
Setting linux-image-2.6.28-15-generic (2.6.28-15.49 )...
Running depmod.
Update-initramfs: generating/boot/initrd. img-2.6.28-15-generic
Running postinst hook script/sbin/update-grub.
Searching for grub installation directory... found:/boot/GRUB
Searching for default file... found:/boot/GRUB/Default
Testing for an existing GRUB menu. LST file... found:/boot/GRUB/menu. lst
Searching for splash image... None found, skipping...
Found kernel:/vmlinuz-2.6.28-15-generic
Found kernel:/vmlinuz-2.6.28-11-generic
Found kernel:/memtest86 +. Bin
Updating/boot/GRUB/menu. lst... Done

Examining/etc/kernel/postinst. D.
Run-parts: executing/etc/kernel/postinst. d/NVIDIA-common
Run-parts:/etc/kernel/postinst. d/NVIDIA-common exited with return code 10
Failed to process/etc/kernel/postinst. d at/var/lib/dpkg/INFO/linux-image-2.6.28-15-generic.postinst line 1002.
Dpkg: Error Handling linux-image-2.6.28-15-generic (-- configure:
The sub-process post-installation script returns Error Code 2.
Dpkg: dependency issues make the configuration of the linux-restricted-modules-2.6.28-15-generic unable to continue:
The linux-restricted-modules-2.6.28-15-generic depends on the linux-image-2.6.28-15-generic; however:
The package linux-image-2.6.28-15-generic has not been configured.
Dpkg: Error Handling linux-restricted-modules-2.6.28-15-generic (-- configure:
Dependency problem-Not Configured
Dpkg: the Linux-image-generic configuration cannot be continued due to dependency issues:
Linux-image-generic depends on the linux-image-2.6.28-15-generic; however:
The package linux-image-2.6.28-15-generic has not been configured.
Dpkg: An error occurred while processing Linux-image-generic (-- configure:
Dependency problem-Not Configured
Dpkg: The dependency problem makes the configuration of Linux-restricted-modules-generic unable to continue:
Linux-restricted-modules-generic depends on the linux-restricted-modules-2.6.28-15-generic; however:
The package linux-restricted-modules-2.6.28-15-generic has not been configured.
Dpkg: handle Linux-restricted-modno 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.
No apport report written because maxreports is reached already
No apport report written because maxreports is reached already
Ules-generic (-- configure) error:
Dependency problem-Not Configured
Dpkg: the Linux-generic configuration cannot be continued due to dependency issues:
Linux-generic depends on Linux-image-generic (= 2.6.28.15.20). However:
The Linux-image-generic package has not been configured.
Linux-generic depends on Linux-restricted-modules-generic (= 2.6.28.15.20); however:
The Linux-restricted-modules-generic package has not been configured yet.
Dpkg: An error occurred while processing Linux-generic (-- configure:
Dependency problem-Not Configured
Setting linux-headers-2.6.28-15-generic (2.6.28-15.49 )...
Examining/etc/kernel/header_postinst.d.
Run-parts: executing/etc/kernel/header_postinst.d/NVIDIA-common
Run-parts:/etc/kernel/header_postinst.d/NVIDIA-common exited with return code 10
Failed to process/etc/kernel/header_postinst.d at/var/lib/dpkg/INFO/linux-headers-2.6.28-15-generic.postinst line 110.
Dpkg: Error Handling linux-headers-2.6.28-15-generic (-- configure:
The sub-process post-installation script returns Error Code 2.
Dpkg: The dependency problem makes the configuration of Linux-headers-generic unable to continue:
Linux-headers-generic depends on the linux-headers-2.6.28-15-generic; however:
The package linux-headers-2.6.28-15-generic has not been configured.
Dpkg: An error occurred while processing Linux-headers-generic (-- configure:
Dependency problem-Not Configured
Setting emacsen-common (1.4.17 )...
No apport report written because maxreports is reached already
No apport report written because maxreports is reached already
Emacsen-common: handling install of emacsen flavor Emacs

Configuring emacs22-common (22.2-0ubuntu2 )...

Configuring emacs22-bin-common (22.2-0ubuntu2 )...

Configuring emacs22-gtk (22.2-0ubuntu2 )...
Byte-compiling add-on packages, please wait... done.

Setting Emacs (22.2-0ubuntu2 )...
An error occurred during processing:
Linux-image-2.6.28-15-generic
Linux-restricted-modules-2.6.28-15-generic
Linux-image-generic
Linux-restricted-modules-generic
Linux-generic
Linux-headers-2.6.28-15-generic
Linux-headers-generic
E: sub-process/usr/bin/dpkg returned an error code (1)
An error occurred while installing the software package. Attempting to recover:
Setting linux-headers-2.6.28-15-generic (2.6.28-15.49 )...
Examining/etc/kernel/header_postinst.d.
Run-parts: executing/etc/kernel/header_postinst.d/NVIDIA-common
Run-parts:/etc/kernel/header_postinst.d/NVIDIA-common exited with return code 10
Failed to process/etc/kernel/header_postinst.d at/var/lib/dpkg/INFO/linux-headers-2.6.28-15-generic.postinst line 110.
Dpkg: Error Handling linux-headers-2.6.28-15-generic (-- configure:
The sub-process post-installation script returns Error Code 2.
Setting linux-image-2.6.28-15-generic (2.6.28-15.49 )...
Running depmod.
Update-initramfs: generating/boot/initrd. img-2.6.28-15-generic
Running postinst hook script/sbin/update-grub.
Searching for grub installation directory... found:/boot/GRUB
Searching for default file... found:/boot/GRUB/Default
Testing for an existing GRUB menu. LST file... found:/boot/GRUB/menu. lst
Searching for splash image... None found, skipping...
Found kernel:/vmlinuz-2.6.28-15-generic
Found kernel:/vmlinuz-2.6.28-11-generic
Found kernel:/memtest86 +. Bin
Updating/boot/GRUB/menu. lst... Done

Examining/etc/kernel/postinst. D.
Run-parts: executing/etc/kernel/postinst. d/NVIDIA-common
Run-parts:/etc/kernel/postinst. d/NVIDIA-common exited with return code 10
Failed to process/etc/kernel/postinst. d at/var/lib/dpkg/INFO/linux-image-2.6.28-15-generic.postinst line 1002.
Dpkg: Error Handling linux-image-2.6.28-15-generic (-- configure:
The sub-process post-installation script returns Error Code 2.
Dpkg: The dependency problem makes the configuration of Linux-headers-generic unable to continue:
Linux-headers-generic depends on the linux-headers-2.6.28-15-generic; however:
The package linux-headers-2.6.28-15-generic has not been configured.
Dpkg: An error occurred while processing Linux-headers-generic (-- configure:
Dependency problem-Not Configured
Dpkg: dependency issues make the configuration of the linux-restricted-modules-2.6.28-15-generic unable to continue:
The linux-restricted-modules-2.6.28-15-generic depends on the linux-image-2.6.28-15-generic; however:
The package linux-image-2.6.28-15-generic has not been configured.
Dpkg: Error Handling linux-restricted-modules-2.6.28-15-generic (-- configure:
Dependency problem-Not Configured
Dpkg: the Linux-image-generic configuration cannot be continued due to dependency issues:
Linux-image-generic depends on the linux-image-2.6.28-15-generic; however:
The package linux-image-2.6.28-15-generic has not been configured.
Dpkg: An error occurred while processing Linux-image-generic (-- configure:
Dependency problem-Not Configured
Dpkg: The dependency problem makes the configuration of Linux-restricted-modules-generic unable to continue:
Linux-restricted-modules-generic depends on the linux-restricted-modules-2.6.28-15-generic; however:
The package linux-restricted-modules-2.6.28-15-generic has not been configured.
Dpkg: An error occurred while processing Linux-restricted-modules-generic (-- configure:
Dependency problem-Not Configured
Dpkg: the Linux-generic configuration cannot be continued due to dependency issues:
Linux-generic depends on Linux-image-generic (= 2.6.28.15.20). However:
The Linux-image-generic package has not been configured.
Linux-generic depends on Linux-restricted-modules-generic (= 2.6.28.15.20); however:
The Linux-restricted-modules-generic package has not been configured yet.
Dpkg: An error occurred while processing Linux-generic (-- configure:
Dependency problem-Not Configured
An error occurred during processing:
Linux-headers-2.6.28-15-generic
Linux-image-2.6.28-15-generic
Linux-headers-generic
Linux-restricted-modules-2.6.28-15-generic
Linux-image-generic
Linux-restricted-modules-generic
Linux-generic
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
Reading extended state file
Initializing package status... complete
Editing extended status information... complete

Tangshuang @ tangshuang-desktop :~ $

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.