+ -
当前位置:首页 → 问答吧 → apt-get 安装错误

apt-get 安装错误

时间:2003-08-13

来源:互联网

在一次使用 apt-get install xfonts-scalable 以后,它提示和 xbase-clients 冲突。结果现在什么都不能安装了, 希望大家帮助一下, 我的系统是 2.4.21 , testing

##################

Architecture: all
Source: xfree86
Version: 4.2.1-6
Replaces: xfntscl
Provides: xfntscl
Depends: xutils (>> 4.0.3)
Suggests: xfs | xserver
Conflicts: xfntscl, xbase-clients (<< 4.0)

####################

laptop:/# apt-get install xfonts-scalable
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, xfonts-scalable is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
1 packages not fully installed or removed.
Need to get 779kB of archives. After unpacking 0B will be used.
Get:1 http://debian.ustc.edu.cn ./ xfonts-scalable 4.3.0-0ds4 [779kB]
Fetched 779kB in 4s (157kB/s)
Selecting previously deselected package xfonts-scalable.
(Reading database ... 26120 files and directories currently installed.)
Preparing to replace xfonts-scalable 4.3.0-0ds4 (using .../xfonts-scalable_4.3.0-0ds4_all.deb) ...
Unpacking replacement xfonts-scalable ...
Setting up xfonts-scalable (4.3.0-0ds4) ...
Running update-fonts-scale in Speedo font directory...done.
Running update-fonts-dir in Speedo font directory...done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
xfonts-scalable
E: Sub-process /usr/bin/dpkg returned an error code (1)



##################################

laptop:/# apt-get install traceroute
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
xfonts-scalable
The following NEW packages will be installed:
traceroute
0 packages upgraded, 1 newly installed, 1 to remove and 23 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/21.6kB of archives. After unpacking 1212kB will be freed.
Do you want to continue? [Y/n]
(Reading database ... 26120 files and directories currently installed.)
Removing xfonts-scalable ...
Running update-fonts-scale in Speedo font directory.../usr/sbin/update-fonts-scale: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
/usr/sbin/update-fonts-scale: warning: /etc/X11/fonts/Speedo does not exist or is not a directory.
done.
Running update-fonts-dir in Speedo font directory.../usr/sbin/update-fonts-dir: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
xfonts-scalable
E: Sub-process /usr/bin/dpkg returned an error code (1)

作者: pstar   发布时间: 2003-08-13

这类情况,我通常运行一下dselect就好了。

作者: LYOO   发布时间: 2003-08-13

晕,去掉xfree 4.3的unofficial包,装testing里的包绝对没问题

作者: carlos   发布时间: 2003-08-14

引用:
最初由 carlos 发表
晕,去掉xfree 4.3的unofficial包,装testing里的包绝对没问题
嗯, 斑竹说的对,确实是这个问题,这里谢过先!!!!

但现在是我怎么也安装不了新的东西!!!

无论是 dpkg -P -r , dselect 都没有任何效果, 不会只有重装这条路了吧??

作者: pstar   发布时间: 2003-08-14

引用:
最初由 pstar 发表
但现在是我怎么也安装不了新的东西!!!

无论是 dpkg -P -r , dselect 都没有任何效果, 不会只有重装这条路了吧?? [/b]
没懂....

不要老是想着重装,那是windows的特权...

作者: carlos   发布时间: 2003-08-14

carlos兄.我从启动到进入KDE.大概需要一分多钟.有时点击任务栏的Konqeror,至少要十秒钟才会出现.这样的系统是不是不正常?
我是赛扬三1G.815EP主板.内存SD128M.

作者: 0100   发布时间: 2003-08-14

我的意思是不能安装东西

apt-get install traceroute
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
traceroute
0 packages upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/21.6kB of archives. After unpacking 106kB will be used.
Selecting previously deselected package traceroute.
(Reading database ... 26154 files and directories currently installed.)
Unpacking traceroute (from .../traceroute_1.4a12-12_i386.deb) ...
Setting up xfonts-scalable (4.3.0-0ds4) ...
Running update-fonts-scale in Speedo font directory...done.
Running update-fonts-dir in Speedo font directory...done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--configure):
subprocess post-installation script returned error exit status 1
Setting up traceroute (1.4a12-12) ...

Errors were encountered while processing:
xfonts-scalable
E: Sub-process /usr/bin/dpkg returned an error code (1)

作者: pstar   发布时间: 2003-08-14

还是xfree86 4.3在作怪
apt-get --purge remove xfonts-scalable
然后进dselect,选C,然后Quit

作者: carlos   发布时间: 2003-08-14

引用:
最初由 0100 发表
carlos兄.我从启动到进入KDE.大概需要一分多钟.有时点击任务栏的Konqeror,至少要十秒钟才会出现.这样的系统是不是不正常?
我是赛扬三1G.815EP主板.内存SD128M.
I don't know , I didn't use K.

作者: carlos   发布时间: 2003-08-14

我要是用Redhat的话,速度也不见得会少多少.所以我觉得Debian的界面是比较好看,软件安装容易.但从速度上来看,令人有些失望.而且我的桌面远远不如版主们的好看.我不知道他们是怎么改出来的.

作者: 0100   发布时间: 2003-08-14

奇怪, 好像还是不行啊, Debian 不会是 “ 请神容易, 送神难吧?” , 呵呵

下面是执行以后的提示, 麻烦您看看:

##########################################


laptop:/# apt-get --Purge remove fonts-scalable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package fonts-scalable
laptop:/# apt-get --Purge remove xfonts-scalable
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
xfonts-scalable*
0 packages upgraded, 0 newly installed, 1 to remove and 23 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 1319kB will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 26164 files and directories currently installed.)
Removing xfonts-scalable ...
Running update-fonts-scale in Speedo font directory.../usr/sbin/update-fonts-scale: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
/usr/sbin/update-fonts-scale: warning: /etc/X11/fonts/Speedo does not exist or is not a directory.
done.
Running update-fonts-dir in Speedo font directory.../usr/sbin/update-fonts-dir: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--purge):
subprocess post-removal script returned error exit status 1
Running update-fonts-scale in Speedo font directory.../usr/sbin/update-fonts-scale: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
/usr/sbin/update-fonts-scale: warning: /etc/X11/fonts/Speedo does not exist or is not a directory.
done.
Running update-fonts-dir in Speedo font directory.../usr/sbin/update-fonts-dir: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
xfonts-scalable
E: Sub-process /usr/bin/dpkg returned an error code (1)
laptop:/home/jojo# dselect
running dpkg --pending --configure ...
running dpkg --pending --remove ...
dpkg: dependency problems prevent removal of console-tools-libs:
console-tools depends on console-tools-libs (= 1:0.2.3-23.3).
dpkg: error processing console-tools-libs (--remove):
dependency problems - not removing
(Reading database ... 26130 files and directories currently installed.)
Removing xfonts-scalable ...
Running update-fonts-scale in Speedo font directory.../usr/sbin/update-fonts-scale: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
/usr/sbin/update-fonts-scale: warning: /etc/X11/fonts/Speedo does not exist or is not a directory.
done.
Running update-fonts-dir in Speedo font directory.../usr/sbin/update-fonts-dir: warning: /usr/lib/X11/fonts/Speedo does not exist or is not a directory.
done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
console-tools-libs
xfonts-scalable

dpkg --remove returned error exit status 1.
Press <enter> to continue.

作者: pstar   发布时间: 2003-08-14

按照提示,看看/usr/X11R6/lib/X11/fonts/Speedo这个目录
如果没有这个目录,自己手动建立一个试试

作者: carlos   发布时间: 2003-08-14

还是不行, 我快疯掉了~~~ :(

laptop:/usr/X11R6/lib/X11/fonts/Speedo# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
xfonts-scalable
The following packages have been kept back
console-tools debianutils e2fsprogs fileutils libldap2 ppp shellutils sysvinit textutils whiptail
15 packages upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/34.6MB of archives. After unpacking 4555kB will be freed.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 26130 files and directories currently installed.)
Removing xfonts-scalable ...
Running update-fonts-scale in Speedo font directory.../usr/sbin/update-fonts-scale: warning: /etc/X11/fonts/Speedo does not exist or is not a directory.
done.
Running update-fonts-dir in Speedo font directory...done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
xfonts-scalable
E: Sub-process /usr/bin/dpkg returned an error code (1)

作者: pstar   发布时间: 2003-08-15

你把 /usr/X11R6/lib/X11/fonts/Speedo 内容列出来看看...

xftcache为什么老是报这个错呢?

我很奇怪,你在这里运行apt-get upgrade是想干什么?

作者: carlos   发布时间: 2003-08-15

引用:
最初由 carlos 发表
晕,去掉xfree 4.3的unofficial包,装testing里的包绝对没问题
斑竹其实已经把原因找到了, 应该就是 unofficial 包的问题,

于是我把 source.list 换成官方的.

目前我机器上是官方的 source.list,

但是在 apt-get update 后, 情况依旧, 我想试试是否能通过 apt-get upgrade 把它整体升级.

结果就是上面的情况了.......不知这样做是否正确,还望斑竹指点

作者: pstar   发布时间: 2003-08-15

是否该把 xftcache 一起给咔嚓掉????

作者: pstar   发布时间: 2003-08-15

引用:
最初由 pstar 发表
是否该把 xftcache 一起给咔嚓掉????
没用的.

我已经跟你提了几遍Speedo目录,你却一直不舍得给我看...

作者: carlos   发布时间: 2003-08-15

呵呵, 对不起,忘记了, 补上:

laptop:/# ls -lsa /usr/X11R6/lib/X11/fonts/
total 56
4 drwxr-xr-x 8 root root 4096 8月 14 23:00 .
4 drwxr-xr-x 10 root root 4096 8月 1 15:41 ..
12 drwxr-xr-x 2 root root 12288 8月 14 20:17 100dpi
12 drwxr-xr-x 2 root root 12288 8月 14 20:17 75dpi
4 drwxr-xr-x 3 root root 4096 7月 31 17:33 encodings
12 drwxr-xr-x 2 root root 12288 8月 14 20:17 misc
4 drwxr-xr-x 2 root root 4096 8月 14 19:59 Type1
4 drwxr-xr-x 2 root root 4096 7月 31 17:33 util

可是自己建了一个也没有用啊

laptop:/usr/X11R6/lib/X11/fonts/Speedo#

您看看, 我就是在这里执行命令的啊:

laptop:/usr/X11R6/lib/X11/fonts/Speedo#

要不我地址给您, 您 ssh 上去??

作者: pstar   发布时间: 2003-08-15

好呀,ssh...

作者: carlos   发布时间: 2003-08-15

发到悄悄话好吗?下面是 dselect 的结果:

奇怪的是 xftcache 好像不能用 , 不知道为什么

另外我用 dpkg -l 来看 xfonts-scalable 的状态是 pH , 怎么解除 Hold 状态??

#######################################

laptop:/usr/X11R6/lib/X11/fonts# dpkg -l xfonts-scalable
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================-================-================================================
pH xfonts-scalable 4.3.0-0ds4 scalable fonts for X



#######################################

laptop:/etc/X11/fonts/Speedo.bak# dselect
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
console-tools-libs xfonts-scalable*
The following NEW packages will be installed:
bc biff bin86 bind9-host bison coreutils cpp-2.95 cpp-3.0 dc dictionaries-common dnsutils
doc-debian doc-linux-text finger flex ftp g++ g++-2.95 g++-3.3 gcc-2.95 gcc-3.0 gcc-3.0-base gdb
gnupg gnupg-doc iamerican ibritish initscripts ipmasqadm ispell libblkid1 libconsole libdns8
libgnutls7 libisc4 liblocale-gettext-perl liblwres1 libnewt0.51 libpcap0.7 libsasl2
libstdc++2.10-dev libstdc++3 libstdc++5-3.3-dev libtext-charwidth-perl libtext-iconv-perl
libtext-wrapi18n-perl lpr lsof lynx m4 manpages-dev mpack mtools mtr-tiny ncurses-term nfs-common
nfs-kernel-server pidentd portmap procmail python-newt python2.1 python2.2-optik rcs reportbug
sharutils slang1a-utf8 strace sysv-rc tcsh texinfo time vacation wamerican wenglish whois
25 packages upgraded, 76 newly installed, 2 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/70.3MB of archives. After unpacking 72.8MB will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 26130 files and directories currently installed.)
Removing xfonts-scalable ...
Running update-fonts-scale in Speedo font directory...done.
Running update-fonts-dir in Speedo font directory...done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
xfonts-scalable
E: Sub-process /usr/bin/dpkg returned an error code (1)
Some errors occurred while unpacking. I'm going to configure the
packages that were installed. This may result in duplicate errors
or errors caused by missing dependencies. This is OK, only the errors
above this message are important. Please fix them and run [i]nstall again
Press enter to continue.


installation script returned error exit status 100.
Press <enter> to continue.

作者: pstar   发布时间: 2003-08-15

引用:
最初由 pstar 发表
发到悄悄话给你好吗?下面是 dselect 的结果:

奇怪的是 xftcache 好像不能用 , 不知道为什么

另外我用 dpkg -l 来看 xfonts-scalable 的状态是 pH , 怎么解除 Hold 状态??

#######################################

laptop:/usr/X11R6/lib/X11/fonts# dpkg -l xfonts-scalable
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================-================-================================================
pH xfonts-scalable 4.3.0-0ds4 scalable fonts for X



#######################################

laptop:/etc/X11/fonts/Speedo.bak# dselect
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
console-tools-libs xfonts-scalable*
The following NEW packages will be installed:
bc biff bin86 bind9-host bison coreutils cpp-2.95 cpp-3.0 dc dictionaries-common dnsutils
doc-debian doc-linux-text finger flex ftp g++ g++-2.95 g++-3.3 gcc-2.95 gcc-3.0 gcc-3.0-base gdb
gnupg gnupg-doc iamerican ibritish initscripts ipmasqadm ispell libblkid1 libconsole libdns8
libgnutls7 libisc4 liblocale-gettext-perl liblwres1 libnewt0.51 libpcap0.7 libsasl2
libstdc++2.10-dev libstdc++3 libstdc++5-3.3-dev libtext-charwidth-perl libtext-iconv-perl
libtext-wrapi18n-perl lpr lsof lynx m4 manpages-dev mpack mtools mtr-tiny ncurses-term nfs-common
nfs-kernel-server pidentd portmap procmail python-newt python2.1 python2.2-optik rcs reportbug
sharutils slang1a-utf8 strace sysv-rc tcsh texinfo time vacation wamerican wenglish whois
25 packages upgraded, 76 newly installed, 2 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/70.3MB of archives. After unpacking 72.8MB will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 26130 files and directories currently installed.)
Removing xfonts-scalable ...
Running update-fonts-scale in Speedo font directory...done.
Running update-fonts-dir in Speedo font directory...done.
Running xftcache in Speedo font directory...Can't scan directory "/usr/X11R6/lib/X11/fonts/Speedo"
dpkg: error processing xfonts-scalable (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
xfonts-scalable
E: Sub-process /usr/bin/dpkg returned an error code (1)
Some errors occurred while unpacking. I'm going to configure the
packages that were installed. This may result in duplicate errors
or errors caused by missing dependencies. This is OK, only the errors
above this message are important. Please fix them and run [i]nstall again
Press enter to continue.


installation script returned error exit status 100.
Press <enter> to continue.

作者: pstar   发布时间: 2003-08-15

debian:/home#apt-get install kde
.
.
.
sorry,but the flollowing packages have umet depencies:
kde: depends: kdelibs3 but it is not going to be installed
下边还有许多

这个是怎么回事啊
不是deb能自己解决依赖关系吗?

作者: 千年一炭   发布时间: 2003-08-23

我觉得应该是 source.list 以及版本选择要一致, 感谢版主 carlos
, 让我明白了很多东西, 谢谢!

作者: pstar   发布时间: 2003-08-24

引用:
最初由 千年一炭 发表
debian:/home#apt-get install kde
.
.
.
sorry,but the flollowing packages have umet depencies:
kde: depends: kdelibs3 but it is not going to be installed
下边还有许多

这个是怎么回事啊
不是deb能自己解决依赖关系吗?
问这类依赖关系方面的问题前
请确保你已经执行过apt-get update
如果依然有错误,请在发贴时附上sources.list

作者: carlos   发布时间: 2003-08-24

是的,还有问题
sources.list

deb http://debian.cn99.com/debian woody main contrib non-free
deb http://debian.cn99.com/debian-non-US woody/non-US main contrib non-free
deb http://debian.cn99.com/debian-security woody/updates main contrib non-free
deb-src http://debian.cn99.com/debian woody main contrib non-free
deb-src http://debian.cn99.com/debian-non-US woody/non-US main contrib non-free


# This file was automatically generated by APTuner.
# http://debian.ustc.edu.cn/aptuner/

# Base Debian distribution
deb http://debian.ustc.edu.cn/debian woody main non-free contrib
deb-src http://debian.ustc.edu.cn/debian woody main non-free contrib

# Non-US software
deb http://debian.ustc.edu.cn/debian-non-US woody/non-US main non-free contrib
deb-src http://debian.ustc.edu.cn/debian-non-US woody/non-US main non-free contrib

# Security updates
deb http://debian.ustc.edu.cn/debian-security woody/updates main non-free contrib
deb-src http://debian.ustc.edu.cn/debian-security woody/updates main non-free contrib

# Proposed updates
deb http://debian.ustc.edu.cn/debian woody-proposed-updates main non-free contrib
deb-src http://debian.ustc.edu.cn/debian woody-proposed-updates main non-free contrib
deb http://debian.ustc.edu.cn/debian-non-US woody-proposed-updates main non-free contrib
deb-src http://debian.ustc.edu.cn/debian-non-US woody-proposed-updates main non-free contrib

# Unofficial GNOME2 for woody
deb http://debian.ustc.edu.cn/debian-uo/gnome2-woody/i386 ./
deb-src http://debian.ustc.edu.cn/debian-uo/gnome2-woody/source ./
# KDE from kde.org
deb http://debian.ustc.edu.cn/debian-uo/kde3-woody/i386 ./
deb-src http://debian.ustc.edu.cn/debian-uo/kde3-woody/source ./
# End of automatically generated section.

作者: 千年一炭   发布时间: 2003-08-28

没有人知道是怎么回事吗?
就只有我碰到事情吗:?

作者: 千年一炭   发布时间: 2003-08-30

如果用apt-get 有困难,试试dselect,不过你要先在dselect 中update一下,再select 。

作者: 听峰   发布时间: 2003-08-30

引用:
最初由 千年一炭 发表
没有人知道是怎么回事吗?
就只有我碰到事情吗:?
不是我不帮你,连你用的debian版本和出错信息都不知道,我无从下手呀

作者: carlos   发布时间: 2003-08-30

热门下载

更多