PART 1解决failed to write cache的问题
最近发神经把linux给格了,重装,装完中文支持,问题就来了,系统干什么都变得奇慢,并且在APT-GET的时候出现了如下的显示
Updating fontconfig cache…
/usr/share/fonts/X11: failed to write cache
/usr/share/fonts/X11/100dpi: failed to write cache
/usr/share/fonts/X11/75dpi: failed to write cache
/usr/share/fonts/X11/Type1: failed to write cache
/usr/share/fonts/X11/encodings: failed to write cache
。。
如果你的系统在APT的过程中也出现了这种情况,请继续往下看。
我在网上搜到了个脚本,用来解决这个问题,把下面的做成脚本运行或者直接复制到终端中运行,然后就搞定了。
#!/bin/bash
#
# 修正 Ubuntu 7.04 fc-cache failed to write cache 错误
#
sudo touch /usr/share/fonts
sudo touch /usr/share/fonts/X11
sudo touch /usr/share/fonts/X11/100dpi
sudo touch /usr/share/fonts/X11/75dpi
sudo touch /usr/share/fonts/X11/Type1
sudo touch /usr/share/fonts/X11/encodings
sudo touch /usr/share/fonts/X11/encodings/large
sudo touch /usr/share/fonts/X11/misc
sudo touch /usr/share/fonts/X11/util
sudo touch /usr/share/fonts/truetype
sudo touch /usr/share/fonts/truetype/arphic
sudo touch /usr/share/fonts/truetype/baekmuk
sudo touch /usr/share/fonts/truetype/freefont
sudo touch /usr/share/fonts/truetype/kochi
sudo touch /usr/share/fonts/truetype/openoffice
sudo touch /usr/share/fonts/truetype/thai
sudo touch /usr/share/fonts/truetype/ttf-arabeyes
sudo touch /usr/share/fonts/truetype/ttf-bengali-fonts
sudo touch /usr/share/fonts/truetype/ttf-bitstream-vera
sudo touch /usr/share/fonts/truetype/ttf-dejavu
sudo touch /usr/share/fonts/truetype/ttf-devanagari-fonts
sudo touch /usr/share/fonts/truetype/ttf-gentium
sudo touch /usr/share/fonts/truetype/ttf-gujarati-fonts
sudo touch /usr/share/fonts/truetype/ttf-kannada-fonts
sudo touch /usr/share/fonts/truetype/ttf-lao
sudo touch /usr/share/fonts/truetype/ttf-malayalam-fonts
sudo touch /usr/share/fonts/truetype/ttf-mgopen
sudo touch /usr/share/fonts/truetype/ttf-oriya-fonts
sudo touch /usr/share/fonts/truetype/ttf-punjabi-fonts
sudo touch /usr/share/fonts/truetype/ttf-tamil-fonts
sudo touch /usr/share/fonts/truetype/ttf-telugu-fonts
sudo touch /usr/share/fonts/type1
sudo touch /usr/share/fonts/type1/gsfonts
sudo touch /usr/share/X11/fonts
sudo touch /usr/share/X11/fonts/100dpi
sudo touch /usr/share/X11/fonts/75dpi
sudo touch /usr/share/X11/fonts/Type1
sudo touch /usr/share/X11/fonts/encodings
sudo touch /usr/share/X11/fonts/encodings/large
sudo touch /usr/share/X11/fonts/misc
sudo touch /usr/share/X11/fonts/util
sudo touch /usr/local/share/fonts
sudo touch /var/lib/defoma/fontconfig.d
sudo touch /var/lib/defoma/fontconfig.d/A
sudo touch /var/lib/defoma/fontconfig.d/B
sudo touch /var/lib/defoma/fontconfig.d/C
sudo touch /var/lib/defoma/fontconfig.d/D
sudo touch /var/lib/defoma/fontconfig.d/E
sudo touch /var/lib/defoma/fontconfig.d/F
sudo touch /var/lib/defoma/fontconfig.d/G
sudo touch /var/lib/defoma/fontconfig.d/H
sudo touch /var/lib/defoma/fontconfig.d/J
sudo touch /var/lib/defoma/fontconfig.d/K
sudo touch /var/lib/defoma/fontconfig.d/L
sudo touch /var/lib/defoma/fontconfig.d/M
sudo touch /var/lib/defoma/fontconfig.d/N
sudo touch /var/lib/defoma/fontconfig.d/O
sudo touch /var/lib/defoma/fontconfig.d/P
sudo touch /var/lib/defoma/fontconfig.d/R
sudo touch /var/lib/defoma/fontconfig.d/S
sudo touch /var/lib/defoma/fontconfig.d/T
sudo touch /var/lib/defoma/fontconfig.d/U
sudo touch /var/lib/defoma/fontconfig.d/V
sudo touch /var/lib/defoma/fontconfig.d/a
sudo touch /var/lib/defoma/fontconfig.d/j
sudo touch /var/lib/defoma/fontconfig.d/m
sudo touch /var/lib/defoma/fontconfig.d/u
PART 2启动系统后无法自动进行pppoe拨号 解决的问题
一般情况下,在使用sudo pppoeconf中选择自动拨号就应该好用,但偶这回就不好用了。。。
解决方法如下
在终端执行
sudo gedit /etc/network/interfaces
对配置文件进行编辑
然后把下面的文字添加到这个配置文件的结尾。
# added by pppoeconf
auto eth0
iface eth0 inet manual
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
ubuntu7.04下pppoe不能自动拨号问题的解决
转载请注明出处:服务器评测 » ubuntu7.04下pppoe不能自动拨号问题的解决
相关推荐
- ✅ SmokyHosts 黑色星期五促销 – 无限量服务器每月 29.97 美元起
- *释放无与伦比的性能和安全性:HostXNow 托管的英国专用服务器 – cPanel
- *★★ 八核 HT Xeon 特价销售!| 中西部专用主机 | 美国印第安纳波利斯 ★★
- *即将在 DedicatedNodes.IO 上推出高性能 AMD EPYC 9274F RPC SOL 节点
- 以实惠的价格购买专用服务器 | DDoS 保护 | 德克萨斯州达拉斯 | 24X7 支持
- DEDICATED.COM::Xeon E3-1270v5/v6 | 64GB | 2 x 512GB SSD | IPMI | 100TB @ 1GBPS | 49.99 美元/月
- *Tier.Net 黑色星期五 11 月全月大促销!整个月专用服务器大减价!
- *Tier.Net 服务器促销!新款 Intel 和 AMD 到货!Turbo Provisioning!全天候实时支持!