apt-get 坏了

apt-get 坏了

当我执行以下命令时,

sudo dpkg --configure -a

我收到以下错误:

Setting up cpufreqd (2.4.2-2) ...

 * Starting CPU Frequency daemon cpufreqd
 *** buffer overflow detected ***: /usr/sbin/cpufreqd terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f870ae661bc]
/lib/x86_64-linux-gnu/libc.so.6(+0x111150)[0x7f870ae65150]
/lib/x86_64-linux-gnu/libc.so.6(+0x1116f4)[0x7f870ae656f4]
/usr/sbin/cpufreqd(main+0x308)[0x402bb8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f870ad75ea5]
/usr/sbin/cpufreqd[0x403c9d]
======= Memory map: ========
00400000-0040b000 r-xp 00000000 08:01 8786172                            /usr/sbin/cpufreqd
0060a000-0060b000 r--p 0000a000 08:01 8786172                            /usr/sbin/cpufreqd
0060b000-0060c000 rw-p 0000b000 08:01 8786172                            /usr/sbin/cpufreqd
01793000-017b4000 rw-p 00000000 00:00 0                                  [heap]
7f870ab3e000-7f870ab52000 r-xp 00000000 08:01 11538071                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f870ab52000-7f870ad52000 ---p 00014000 08:01 11538071                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f870ad52000-7f870ad53000 r--p 00014000 08:01 11538071                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f870ad53000-7f870ad54000 rw-p 00015000 08:01 11538071                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f870ad54000-7f870af13000 r-xp 00000000 08:01 11536374                   /lib/x86_64-linux-gnu/libc-2.17.so
7f870af13000-7f870b112000 ---p 001bf000 08:01 11536374                   /lib/x86_64-linux-gnu/libc-2.17.so
7f870b112000-7f870b116000 r--p 001be000 08:01 11536374                   /lib/x86_64-linux-gnu/libc-2.17.so
7f870b116000-7f870b118000 rw-p 001c2000 08:01 11536374                   /lib/x86_64-linux-gnu/libc-2.17.so
7f870b118000-7f870b11d000 rw-p 00000000 00:00 0 
7f870b11d000-7f870b122000 r-xp 00000000 08:01 8786167                   /usr/lib/libcpufreq.so.0.0.0
7f870b122000-7f870b321000 ---p 00005000 08:01 8786167                    /usr/lib/libcpufreq.so.0.0.0
7f870b321000-7f870b322000 r--p 00004000 08:01 8786167                    /usr/lib/libcpufreq.so.0.0.0
7f870b322000-7f870b323000 rw-p 00005000 08:01 8786167                    /usr/lib/libcpufreq.so.0.0.0
7f870b323000-7f870b326000 r-xp 00000000 08:01 11536362                   /lib/x86_64-linux-gnu/libdl-2.17.so
7f870b326000-7f870b525000 ---p 00003000 08:01 11536362                   /lib/x86_64-linux-gnu/libdl-2.17.so
7f870b525000-7f870b526000 r--p 00002000 08:01 11536362                   /lib/x86_64-linux-gnu/libdl-2.17.so
7f870b526000-7f870b527000 rw-p 00003000 08:01 11536362                   /lib/x86_64-linux-gnu/libdl-2.17.so
7f870b527000-7f870b54a000 r-xp 00000000 08:01 11535446                   /lib/x86_64-linux-gnu/ld-2.17.so
7f870b721000-7f870b724000 rw-p 00000000 00:00 0 
7f870b746000-7f870b749000 rw-p 00000000 00:00 0 
7f870b749000-7f870b74a000 r--p 00022000 08:01 11535446                   /lib/x86_64-linux-gnu/ld-2.17.so
7f870b74a000-7f870b74c000 rw-p 00023000 08:01 11535446                   /lib/x86_64-linux-gnu/ld-2.17.so
7fff4ef22000-7fff4ef43000 rw-p 00000000 00:00 0                          [stack]
7fff4effe000-7fff4f000000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

invoke-rc.d: initscript cpufreqd, action "start" failed.
dpkg: error processing cpufreqd (--configure):
subprocess installed post-installation script returned error exit status 134

处理时遇到错误:

cpufreqd

答案1

正是 的崩溃cpufreqd阻碍了您的 apt。

我建议您删除该包,然后cpufreqd查找并修复损坏的包依赖项。sudo apt-get remove cpufreqdapt-get -f install

如果该命令sudo apt-get remove cpufreqd不起作用,请尝试sudo dpkg --remove cpufreqd

当您的系统再次正常运行时,您可以尝试重新安装该cpufreqd软件包(如果需要)。

相关内容