Debian 套件安裝升級後 如何降版還原(Rollback)

Debin / Ubuntu Linux 都是使用 APT + Dpkg 來管理套件,安裝 deb 檔,若遇到新版套件安裝後,發現到有問題,要怎麼還原回前一個版本呢?(或者說是降版)

閱讀全文〈Debian 套件安裝升級後 如何降版還原(Rollback)〉

Debian Linux 特定套件使用新版本(Testing)的作法

Debian / Ubuntu Linux 某個套件需要用到 testing / sid 的套件,但是其它都還是想維持在 stable,要怎麼做呢?

閱讀全文〈Debian Linux 特定套件使用新版本(Testing)的作法〉

Ubuntu Linux 安裝 Franz 綜合通訊軟體

Franz 是套綜合通訊軟體,主要是一套應用程式,裡面依照 Tab 分開載入各個 App 的網頁,統一界面,方便切換使用。

註:主要 Facebook Messenger、Slack、Google hangout、Skype、微信... 等等都支援。

閱讀全文〈Ubuntu Linux 安裝 Franz 綜合通訊軟體〉

Ubuntu Linux 15.10 安裝 ISO檔 無法開機的解法

這星期要重灌機器,抓 Ubuntu Linux 15.10 的 ISO 檔下來,然後經由 "製作開機碟 (usb-creator-gtk)" 寫入 USB,再由 USB 開機,都會出現下述錯誤:(開機失敗)

SYSLINUX 6.03 EDD 20150813 Copyright (C) 1994-2012 H. Peter Anvin et al
Boot Error

閱讀全文〈Ubuntu Linux 15.10 安裝 ISO檔 無法開機的解法〉

Linux 修正大量 GPG error BADSIG 的問題

Debian / Ubuntu Linux 遇到大量的 GPG error (BADSIG) 要怎麼解決呢?

錯誤訊息如下述:

問題1

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: 以下簽名無效: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key \<[email protected]\>
W: 無法取得 http://dl.google.com/linux/mod-pagespeed/deb/dists/stable/Release,
W: Some index files failed to download. They have been ignored, or old ones used instead.

問題2

W: GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key \<[email protected]\>
W: GPG error: http://security.ubuntu.com precise-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key \<[email protected]\>
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key \<[email protected]\>
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 531EE72F4C9D234C Launchpad webupd8
W: GPG error: http://in.archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key \<[email protected]\>
W: GPG error: http://in.archive.ubuntu.com precise-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key \<[email protected]\>

閱讀全文〈Linux 修正大量 GPG error BADSIG 的問題〉

Ubuntu 12.04 遇到 procps 造成 udev、mountall 相依性衝突解法

Ubuntu Linux 12.04 最近升級時,遇到幾台有下述訊息:

Setting up procps (1:3.2.8-11ubuntu6.4) ...
start: Job failed to start
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing procps (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of udev:
 udev depends on procps; however:
  Package procps is not configured yet.
dpkg: error processing udev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mountall:
 mountall depends on udev; however:
  Package udev is not configured yet.
dpkg: error processing mountall (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
  procps
  udev
  mountall
E: Sub-process /usr/bin/dpkg returned an error code (1)

遇到這個還好,想說新版套件應該就會修復此問題,但是剛好遇到 Linode 全部機器都要重開,就炸了。

出現這個問題的機器,重開自然開不了機,簡單的直接進入修復模式後,資料備份出來,直接重灌成 Debian 解決;麻煩的就參照這篇試試看,看能不能解決囉~

  • 註1:在 Linode 若要進入修復模式,可見此篇:Rescue and Rebuild - Linode Guides & Tutorials
  • 註2:在 Rescue 模式預設網路是通的,但是 DNS 不通,請自行到 /etc/resole.conf 增加 nameserver 8.8.8.8 之類的.

閱讀全文〈Ubuntu 12.04 遇到 procps 造成 udev、mountall 相依性衝突解法〉