长话短说

长话短说

长话短说

问题:intel-microcode我怎样才能禁止将来安装该软件包?由于我的记性不好,有一天我可能会再次尝试安装它。


很长的故事

昨天我安装了intel-microcode在 Linux Mint 18.3 上使用driver-manager.

问题:在这台笔记本电脑的情况下,它会导致完全系统冻结

可重现:是的,每次启动后。

什么时候: 每次系统启动时。更具体地说,有时是在加载时initramfs,更常见的是登录后不久(最多约 5 分钟)。


核心: 4.13.0-38-generic

硬件:不是旧的,但不是新的笔记本电脑 Lenovo IdeaPad Z50-70,确切型号 59-432384。

BIOS: 9BCN31WW

BIOS升级注意事项:由于Lenovo只提供Windows的BIOS升级,所以我无法升级。最新的BIOS日期是2015年9月24日,无论如何,这是很久以前的事了,联想BIOS下载页面

中央处理器: 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

答案1

可以给封装加一个负极引脚;这将阻止apt安装它。添加一个名为 in 的文件,no-intel-microcode其中/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 的工具就是修改 pin。

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

相关内容