Linux-Mint

如何防止在 Linux Mint 上安裝特定軟體包?

  • April 12, 2018

TL;博士

**問題:**我以後如何禁止安裝該軟體包intel-microcode?由於我記性不好,我可能有一天會再次嘗試安裝它。


很長的故事

昨天,我**intel-microcode**在 Linux Mint 18.3 上使用driver-manager.

問題:在這台筆記型電腦的情況下,它會導致系統完全凍結

可重現:是的,每次啟動後。

時間:每次系統啟動時。更具體地說,有時在載入initramfs時,更常見的是在登錄後不久(最多大約 5 分鐘)。


核心4.13.0-38-generic

硬體:不是舊但不是新筆記型電腦聯想 IdeaPad Z50-70,確切型號 59-432384。

BIOS:。9BCN31WW_

BIOS 升級註意事項:由於聯想只提供 Windows 的 BIOS 升級,我無法升級。最新的 BIOS 日期為 2015 年 9 月 24 日,無論如何,這是很久以前的事了,Lenovo BIOS 下載頁面

CPU:,方舟英特爾i7-4510U

dmidecode,相關CPU部分

Processor Information
       Socket Designation: U3E1
       Type: Central Processor
       Family: Core i7
       Manufacturer: Intel(R) Corporation
       ID: 51 06 04 00 FF FB EB BF
       Signature: Type 0, Family 6, Model 69, Stepping 1
       Flags:
               FPU (Floating-point unit on-chip)
               VME (Virtual mode extension)
               DE (Debugging extension)
               PSE (Page size extension)
               TSC (Time stamp counter)
               MSR (Model specific registers)
               PAE (Physical address extension)
               MCE (Machine check exception)
               CX8 (CMPXCHG8 instruction supported)
               APIC (On-chip APIC hardware supported)
               SEP (Fast system call)
               MTRR (Memory type range registers)
               PGE (Page global enable)
               MCA (Machine check architecture)
               CMOV (Conditional move instruction supported)
               PAT (Page attribute table)
               PSE-36 (36-bit page size extension)
               CLFSH (CLFLUSH instruction supported)
               DS (Debug store)
               ACPI (ACPI supported)
               MMX (MMX technology supported)
               FXSR (FXSAVE and FXSTOR instructions supported)
               SSE (Streaming SIMD extensions)
               SSE2 (Streaming SIMD extensions 2)
               SS (Self-snoop)
               HTT (Multi-threading)
               TM (Thermal monitor supported)
               PBE (Pending break enabled)
       Version: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
       Voltage: 0.7 V
       External Clock: 100 MHz
       Max Speed: 2600 MHz
       Current Speed: 1900 MHz
       Status: Populated, Enabled
       Upgrade: Socket BGA1168
       L1 Cache Handle: 0x000B
       L2 Cache Handle: 0x000C
       L3 Cache Handle: 0x000D
       Serial Number: To Be Filled By O.E.M.
       Asset Tag: To Be Filled By O.E.M.
       Part Number: To Be Filled By O.E.M.
       Core Count: 2
       Core Enabled: 2
       Thread Count: 4
       Characteristics:
               64-bit capable
               Multi-Core
               Hardware Thread
               Execute Protection
               Enhanced Virtualization
               Power/Performance Control

***臨時解決方案:***我很幸運,有一次電腦啟動正常,而且我的速度足夠快,可以再次通過driver-manager.

你可以給封裝一個負極引腳;這將阻止apt安裝它。添加一個名為,例如no-intel-microcodein的文件/etc/apt/preferences.d,其中包含

Explanation: intel-microcode causes this laptop to crash
Package: intel-microcode
Pin: release n=xenial*
Pin-Priority: -1

然後嘗試安裝intel-microcode將抱怨找不到候選版本,並且不會安裝任何內容。允許通過基於 APT 的工具進行安裝的唯一方法是更改​​引腳。

apt policy intel-microcode會顯示類似

intel-microcode:
 Installed: (none)
 Candidate: (none)
 Version table:
    3.20180312.1 -1
        -1 http://ftp.fr.debian.org/debian testing/non-free amd64 Packages
        -1 http://ftp.fr.debian.org/debian unstable/non-free amd64 Packages
    3.20170707.1~deb9u1 -1
        -1 http://ftp.fr.debian.org/debian stretch/non-free amd64 Packages

引用自:https://unix.stackexchange.com/questions/437219