今天重灌 Ubuntu Feisty 遇到的一些問題

| 七月 10, 2007 | 1個迴響| 沒有引用| 2029 reads | Size: L, M, S | Edit: P, C, R |
| Category: Ubuntu. and Tags: , , . |

    因為硬碟回來了,把那顆拿來 Lab 裝,用自己的硬碟比較安心。

    因為夠大,所以先裝了 Windows XP 來當作娛樂中心 :p,然後又裝了 Ubuntu Feisty。前一次用升級的,沒遇到任何問題,今天用 Alternate CD 來安裝,結果遇到了一些狀況 :(

    安裝的時候,習慣會看 Alt+F4 裡面的 Log,無意中看到最後安裝 langurage-support-zh 的時候,發生了一點錯誤,應該是預設沒把 zh 的 locale 寫進去。解決方法是:

    1. 「# sudo nano /var/lib/locales/supported.d/zh」,我的內容如下:

    zh_TW.UTF-8 UTF-8
    zh_TW.BIG5  BIG5
    zh_CN.UTF-8 UTF-8

    3. 接著「# sudo locale-gen」。

    4. 再去安裝 language-support-zh:「# sudo apt-get install language-support-zh」。

    搞定。

     

    首先,安裝後,放了一些字型上去,然後「# sudo fc-cache -f -v」的時候,卻出現一堆「failed to write cache」。查了一下,是因為路徑的關係,然後在 Ubuntu TW 上看到 解決的方法

    1. 「# nano patch.sh」,內容是:

    #!/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

    2. 「# chmod +x patch.sh」。

    3. 「# sudo ./patch.sh」。

    4. # sudo fc-cache -f -v

    這樣應該就沒問題了。 

     

    接著這個比較烏龍,應該是我自己的問題。把字型複製過去 /usr/share/fonts/truetype/MyFonts 後,也把上面問題處理好了,結果出來的字型一直都是空白的。結果發現原因是權限的問題,全部弄成 644 再去做 fc-cache -f -v 就沒事了:

    # sudo chmod 644 *

    # sudo fc-cache -f -v 

     

    目前只遇到這幾個問題。 


    隨機文章:
    » [Ubuntu] 小鹿之後
    » [Ubuntu] VirtualBox
    » [Ubuntu] 小鹿變身長臂猿 - Feisty Upgrade To Gutsy
    » [Ubuntu] 使用內建的 radeon 驅動開啟 3D 支援
    » [Ubuntu] sources.list for gutsy


Leave A Comment:













   


1 迴響 of "今天重灌 Ubuntu Feisty 遇到的一些問題"

infboyRe: 今天重灌 Ubuntu Feisty 遇到的一些問題 By infboy @ 2008 二月 28, 22:43 :

Thank you...