PDA

View Full Version : [ubuntu] what's wrong with it?



sharethl
February 15th, 2009, 01:50 AM
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
读取状态信息... 完成
下列的软件包将被升级:
linux-image-2.6.24-23-generic
共升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 0B/18.4MB 的软件包。
操作完成后,会消耗掉 0B 的额外磁盘空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 128869 个文件和目录。)
正预备替换 linux-image-2.6.24-23-generic 2.6.24-23.46 (使用 .../linux-image-2.6.24-23-generic_2.6.24-23.48_i386.deb) ...
Done.
正在解压缩将用于更替的包文件 linux-image-2.6.24-23-generic ...
dpkg:处理 /var/cache/apt/archives/linux-image-2.6.24-23-generic_2.6.24-23.48_i386.deb (--unpack)时出错:
无法在安装新的版本前,为“./boot/vmlinuz-2.6.24-23-generic”做一个符号链接备份: 操作不允许
dpkg-deb: 子进程 paste 被信号(Broken pipe)终止了
Running postrm 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: /boot/vmlinuz-2.6.24-23-generic
Found kernel: /boot/vmlinuz-2.6.24-22-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

在处理时有错误发生:
/var/cache/apt/archives/linux-image-2.6.24-23-generic_2.6.24-23.48_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

hansdown
February 15th, 2009, 02:45 AM
Hi sharethl.

Which forum are you normally on?

I see your posts, but can't tell the location of that forum.

sharethl
February 15th, 2009, 03:01 AM
I normally on this forum
http://forum.ubuntu.org.cn
I have post it there but nobody reply it, So I came to here for help.

hansdown
February 15th, 2009, 04:42 AM
I found something that may help, but I don't know if the language will work.

I found this thread.

http://www.linuxquestions.org/questions/debian-26/sub-process-usrbindpkg-returned-an-error-code-1-171107/

It says to enter
apt-get -f install

I'm not sure if that is what you need, but maybe it will work?

bapoumba
February 15th, 2009, 10:27 AM
@ sharethl: could you please translate your error messages so that we can give appropriate input? Thanks.

sharethl
February 18th, 2009, 06:55 AM
root@sharethl-laptop:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
linux-image-2.6.24-23-generic
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/18.4MB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 128581 files and directories currently installed.)
Preparing to replace linux-image-2.6.24-23-generic 2.6.24-23.46 (using .../linux-image-2.6.24-23-generic_2.6.24-23.48_i386.deb) ...
Done.
Unpacking replacement linux-image-2.6.24-23-generic ...
dpkg: error processing /var/cache/apt/archives/linux-image-2.6.24-23-generic_2.6.24-23.48_i386.deb (--unpack):
unable to make backup link of `./boot/vmlinuz-2.6.24-23-generic' before installing new version: Operation not permitted
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Running postrm 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: /boot/vmlinuz-2.6.24-23-generic
Found kernel: /boot/vmlinuz-2.6.24-22-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Errors were encountered while processing:
/var/cache/apt/archives/linux-image-2.6.24-23-generic_2.6.24-23.48_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@sharethl-laptop:~#

bapoumba
February 18th, 2009, 06:28 PM
Please post you sources.list

cat /etc/apt/sources.list

And the output to

sudo apt-get update
sudo apt-get dist-upgrade

sharethl
February 19th, 2009, 07:10 AM
sharethl@sharethl-laptop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://debian.nctu.edu.tw/ubuntu/ hardy main restricted
deb-src http://debian.nctu.edu.tw/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://debian.nctu.edu.tw/ubuntu/ hardy-updates main restricted
deb-src http://debian.nctu.edu.tw/ubuntu/ hardy-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://debian.nctu.edu.tw/ubuntu/ hardy universe
deb-src http://debian.nctu.edu.tw/ubuntu/ hardy universe
deb http://debian.nctu.edu.tw/ubuntu/ hardy-updates universe
deb-src http://debian.nctu.edu.tw/ubuntu/ hardy-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://debian.nctu.edu.tw/ubuntu/ hardy multiverse
deb-src http://debian.nctu.edu.tw/ubuntu/ hardy multiverse
deb http://debian.nctu.edu.tw/ubuntu/ hardy-updates multiverse
deb-src http://debian.nctu.edu.tw/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://cn.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe 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 hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu hardy-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu hardy-security universe
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu hardy-security universe
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu hardy-security multiverse
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse

# deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted universe multiverse
# deb http://ppa.launchpad.net/awn-testing/ubuntu hardy main
# deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main

bapoumba
February 19th, 2009, 10:51 PM
Please enable the hardy-security repositories :)

sharethl
February 22nd, 2009, 01:26 AM
It didn't work,

bapoumba
February 23rd, 2009, 10:44 PM
Hmm, may be try to use the main repos just to check. May be the repos you are using are not synced properly.. I got that kernel up and running.

ugm6hr
February 23rd, 2009, 10:50 PM
Post output from:

df -m