linux:debian
差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
| linux:debian [2007/08/22 16:18] – wenpei | linux:debian [2009/09/13 22:31] (目前版本) – wenpei | ||
|---|---|---|---|
| 行 32: | 行 32: | ||
| 查詢某個檔案是哪個套件提供的 | 查詢某個檔案是哪個套件提供的 | ||
| $ dpkg -S [檔案名] | $ dpkg -S [檔案名] | ||
| + | |||
| + | ===== Reference ===== | ||
| + | DPKG/APT 常用指令 (上):http:// | ||
| + | |||
| + | DPKG/APT 常用指令 (下):http:// | ||
| ====== 自己修改 deb 檔案的相依性資訊 ====== | ====== 自己修改 deb 檔案的相依性資訊 ====== | ||
| 行 73: | 行 78: | ||
| ====== 用 checkinstall 替代 make install ====== | ====== 用 checkinstall 替代 make install ====== | ||
| http:// | http:// | ||
| + | |||
| + | ====== 編譯核心 ====== | ||
| + | 安裝所需套件 | ||
| + | apt-get install libncurses5-dev kernel-package linux-source | ||
| + | |||
| + | 到 /usr/src 將下載下來的 tar.bz2 檔案解壓縮,然後將 / | ||
| + | |||
| + | make-kpkg clean | ||
| + | |||
| + | 修改設定檔 | ||
| + | make menuconfig | ||
| + | |||
| + | 將核心編譯成 dpkg 檔 | ||
| + | make-kpkg --revision xxx.xxx --config=menuconfig --initrd binary-arch | ||
| + | |||
| + | 完成後將會產生兩個 deb 檔案,利用 dpkg -i 將這兩個套件安裝即可。 | ||
| + | |||
| + | ====== 套件損毀 ====== | ||
| + | 如果不小心安裝到 ubuntu 的 .deb 套件,有可能安裝失敗,導致要重新安裝、移除都不行,出現下列資訊: | ||
| + | |||
| + | 中文: | ||
| + | < | ||
| + | dpkg:在處理 adobe-flashplugin (--remove) 時發生錯誤: | ||
| + | | ||
| + | 在處理時有錯誤發生: | ||
| + | | ||
| + | E: Sub-process / | ||
| + | 套件安裝失敗。正在試圖恢復: | ||
| + | </ | ||
| + | |||
| + | 英文: | ||
| + | < | ||
| + | dpkg: error processing adobe-flashplugin (--remove): | ||
| + | | ||
| + | | ||
| + | Errors were encountered while processing: | ||
| + | | ||
| + | E: Sub-process / | ||
| + | A package failed to install. | ||
| + | </ | ||
| + | |||
| + | 處理方式: | ||
| + | - 備份 / | ||
| + | - 編輯上述檔案,找到套件名稱,如本例的 adobe-flashplugin | ||
| + | - 將所有相關資訊(一整個區塊)刪除,存檔離開即可 | ||
| + | < | ||
| + | Package: adobe-flashplugin | ||
| + | Status: deinstall reinstreq half-configured | ||
| + | Priority: optional | ||
| + | Section: web | ||
| + | Installed-Size: | ||
| + | Maintainer: Ubuntu Core Developers < | ||
| + | Architecture: | ||
| + | Version: 10.0.22.87-1 | ||
| + | Config-Version: | ||
| + | Replaces: flashplugin (<< 6) | ||
| + | Provides: flashplugin-nonfree | ||
| + | Depends: debconf | debconf-2.0, | ||
| + | Suggests: firefox, konqueror-nsplugins, | ||
| + | Conflicts: flashplayer-mozilla, | ||
| + | Description: | ||
| + | This package will download the Flash Player from Adobe. It is a | ||
| + | | ||
| + | the Flash plugin. This package officially supports the following browsers: | ||
| + | . | ||
| + | | ||
| + | Original-Maintainer: | ||
| + | </ | ||
| ====== useful ubuntu links ====== | ====== useful ubuntu links ====== | ||
linux/debian.1187770718.txt.gz · 上一次變更: 由 wenpei
