出了小黑屋,鼠标键盘又动不了了

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
zjz00zjz
帖子: 275
注册时间: 2008-08-16 9:39

出了小黑屋,鼠标键盘又动不了了

#1

帖子 zjz00zjz » 2009-06-10 14:16

昨天升级挂掉了,进了小黑屋,今天中午进恢复模式里面去,卸载了xorg,gdm,GNOME-core等等东西,再重新安装了一次,下午重启进去一看,可以看到登陆画面了,但是鼠标和键盘都动不了了,这回又该怎么办啊。
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: 出了小黑屋,鼠标键盘又动不了了

#2

帖子 hcym » 2009-06-10 14:23

苦命的

startx试试能启动不
头像
zjz00zjz
帖子: 275
注册时间: 2008-08-16 9:39

Re: 出了小黑屋,鼠标键盘又动不了了

#3

帖子 zjz00zjz » 2009-06-10 14:40

hcym 写了:苦命的

startx试试能启动不
动不了,进去把xorg.conf这个东西恢复了一下,又看不到登陆界面了,好郁闷。
头像
daf3707
论坛版主
帖子: 12731
注册时间: 2007-06-13 15:57
来自: 在他乡

Re: 出了小黑屋,鼠标键盘又动不了了

#4

帖子 daf3707 » 2009-06-10 16:11

升级后没重装显卡驱动吧
头像
zjz00zjz
帖子: 275
注册时间: 2008-08-16 9:39

Re: 出了小黑屋,鼠标键盘又动不了了

#5

帖子 zjz00zjz » 2009-06-10 16:59

daf3707 写了:升级后没重装显卡驱动吧
显卡驱动怎么装啊 我的是ati X550的破显卡 老是装不上驱动
头像
daf3707
论坛版主
帖子: 12731
注册时间: 2007-06-13 15:57
来自: 在他乡

Re: 出了小黑屋,鼠标键盘又动不了了

#6

帖子 daf3707 » 2009-06-10 17:31

找大三八吧 :em03
头像
zjz00zjz
帖子: 275
注册时间: 2008-08-16 9:39

Re: 出了小黑屋,鼠标键盘又动不了了

#7

帖子 zjz00zjz » 2009-06-10 21:27

Ubuntu/Debian apt‐get: subprocess pre‐installation script returned error
exit status 1
Posted by Florian N in Unix general
As the title says this post is about an error showing up when trying to install packages using apt get
or aptitude and
something goes wrong: subprocess preinstallation
script returned error exit status 1 .
The issue in this case was created by aspell and dictionaries common
packages when trying to install aspell.
The biggest issue is that dpkg will fail with an error code of 1 even when trying to uninstall/remove/purge the package and it
will not matter how hard you try:
Let’s get on the case, we will end up in a loop:
aptget
install aspellen
//will end with:
The following packages have unmet dependencies:
aspell: Depends: dictionariescommon
(> 0.40) but it is not going to be installed
aspellen:
Depends: dictionariescommon
(>= 0.49.2) but it is not going to be installed
E: Unmet dependencies. Try 'aptget
f
install' with no packages (or specify a solution).
Next stage trying to install the unmet dependencies:
aptget
install dictionariescommon
//and this will end with :
Unpacking dictionariescommon
(from .../dictionariescommon_
0.62.5ubuntu2_all.deb) ...
No alternatives for ispelldictionary.
hash.
dpkg: error processing /var/cache/apt/archives/dictionariescommon_
0.62.5ubuntu2_all.deb (unpack):
subprocess preinstallation
script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/dictionariescommon_
0.62.5ubuntu2_all.deb
E: Subprocess
/usr/bin/dpkg returned an error code (1)
So something is wrong, let’s try and remove aspellen
package:
aptget
remove aspellen
//which will return again:
You might want to run `aptget
f
install' to correct these:
The following packages have unmet dependencies:
aspell: Depends: dictionariescommon
(> 0.40) but it is not going to be installed
E: Unmet dependencies. Try 'aptget
f
install' with no packages (or specify a solution).
Hmm, what the hack???
Try and do what it says:
aptget
f
install //guess what will be the return at the end:
Unpacking dictionariescommon
(from .../dictionariescommon_
0.62.5ubuntu2_all.deb) ...
No alternatives for ispelldictionary.
hash.
dpkg: error processing /var/cache/apt/archives/dictionariescommon_
0.62.5ubuntu2_all.deb (unpack):
subprocess preinstallation
script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/dictionariescommon_
0.62.5ubuntu2_all.deb
E: Subprocess
/usr/bin/dpkg returned an error code (1)
So now we are in a loop and nothing helps really, you can try and run for example dpkg purge
forcedepends
dictionariescommon
or any other derivative commands including purge or remove but may be that not one of them will
help here.
What to do?
Well an option will be to check the package in question inn the dpkg libraries directory /var/lib/dpkg/info/ .
Checking that directory for aspellen(
which actually is the cause in this case) you will see a few files:
aspellen.
postinst
aspellen.
postrm
aspellen.
list
aspellen.
prerm
One of this files(which are actually small scripts) is creating that error when installing or uninstalling so we are unable to
remove aspell en
anymore.
Oct 01 2008
Home OpenVZ Installer About
A life to learn
Yet another Techi blog
Powered by WordPress , Mandigo theme by tom.
Entries (RSS) and Comments (RSS) .
54 queries. 1.383 seconds.
aspellen.
postinst
aspellen.
postrm
aspellen.
list
aspellen.
prerm
One of this files(which are actually small scripts) is creating that error when installing or uninstalling so we are unable to
remove aspell en
anymore.
A fix around this will be to edit the /var/lib/dpkg/info/aspellen.
postrm file(in our case we want to remove the file) and
add exit 0 after the set e
so that in the end the line will look like:
set e
exit 0
Save and try again to remove the package:
dpkg purge
forcedepends
aspellen
//you should be able to remove the package just fine
Now, what caused all this mess? Well in this specific case it was the dictionariescommon
package which i suspect it was
borked.
After grabbing another package(dictionaries common
package) from the internet(debian repositories) and installing it and
tried to install aspell en
again everything run fine and got it installed with no issue or error.
The problem here was based on aspell en
and dictionaries common
头像
zjz00zjz
帖子: 275
注册时间: 2008-08-16 9:39

Re: 出了小黑屋,鼠标键盘又动不了了

#8

帖子 zjz00zjz » 2009-06-10 21:28

上面这些E文看不太懂(只看懂了代码那些句子) 但是我的情况和里面的一样。
头像
zjz00zjz
帖子: 275
注册时间: 2008-08-16 9:39

Re: 出了小黑屋,鼠标键盘又动不了了

#9

帖子 zjz00zjz » 2009-06-11 15:08

有没有谁能解释一下的?
回复