在 Ubuntu 16.04.3 上安装 Synaptic 时出现错误“内核模块构建的错误返回状态:4.4.0-87-generic (x86_64)”。或者这是一个正常错误?

在 Ubuntu 16.04.3 上安装 Synaptic 时出现错误“内核模块构建的错误返回状态:4.4.0-87-generic (x86_64)”。或者这是一个正常错误?

1.您是否建议在通过终端安装 Synaptic 之前使用 sudo apt-get upgrade 命令?

2.(将来):在卸载此内核上处于活动状态的旧模块版本之前,我是否应该手动将其设置为非活动状态?或者 ubuntu 默认在所有情况下都以 OK 退出?

3.请观察2个错误:

a. Error! Bad return status for module build on kernel
b. error processing package oem

4.更糟糕的是:作为第三方,无法报告“严重问题”

下面,我将发布我的终端的输出。这是正常的吗?

Setting up   oem-audio-hda-daily-dkms (0.201612080732~ubuntu16.04.1) ...
Removing old oem-audio-hda-daily-0.201612080732~ubuntu16.04.1 DKMS files...

-------- Uninstall Beginning --------
Module:  oem-audio-hda-daily
Version: 0.201612080732~ubuntu16.04.1
Kernel:  4.4.0-23-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
DKMS: uninstall completed.
------------------------------
Deleting module version: 0.201612080732~ubuntu16.04.1
completely from the DKMS tree.
------------------------------
Done.
Loading new oem-audio-hda-daily-0.201612080732~ubuntu16.04.1 DKMS files...
First Installation: checking all kernels...
Building only for 4.4.0-87-generic
Building for architecture x86_64
Building initial module for 4.4.0-87-generic

ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/oem-audio-hda-daily-dkms.0.crash'

Error! Bad return status for module build on kernel: 4.4.0-87-generic (x86_64)

Consult /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/make.log for more information.

dpkg: error processing package oem-audio-hda-daily-dkms (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up sgml-data (2.0.10) ...
Setting up libept1.5.0:amd64 (1.1+nmu3) ...
Setting up librarian0 (0.8.1-6) ...
Setting up synaptic (0.83) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Setting up docbook-xml (4.5-7.3) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Setting up rarian-compat (0.8.1-6) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Errors were encountered while processing:
 oem-audio-hda-daily-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

提前致谢。


@heynnema ..........

DKMS make.log for oem-audio-hda-daily-0.201612080732~ubuntu16.04.1 for kernel 4.4.0-87-generic (x86_64)
Wednesday 9 August 2017, 16:30:04 +0100
make -C /lib/modules/4.4.0-87-generic/build M=/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-87-generic'
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_bind.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_codec.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_jack.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_auto_parser.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_sysfs.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_controller.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_proc.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_hwdep.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_beep.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_generic.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-generic.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_realtek.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-realtek.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_cmedia.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-cmedia.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_analog.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-analog.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_sigmatel.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-idt.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_si3054.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-si3054.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_cirrus.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-cirrus.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_ca0110.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-ca0110.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_ca0132.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-ca0132.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_conexant.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-conexant.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_via.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-via.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_hdmi.o
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_hdmi.c: In function ‘register_i915_notifier’:
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/patch_hdmi.c:2338:38: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  spec->i915_audio_ops.pin_eld_notify = intel_pin_eld_notify;
                                      ^
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_eld.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-codec-hdmi.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hda_intel.o
  LD [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/snd-hda-intel.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hda_bus_type.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_bus.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_device.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_sysfs.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_regmap.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_controller.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_stream.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/array.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdmi_chmap.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/trace.o
  CC [M]  /var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.o
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c: In function ‘snd_hdac_sync_audio_rate’:
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:215:9: error: too few arguments to function ‘acomp->ops->sync_audio_rate’
  return acomp->ops->sync_audio_rate(acomp->dev, port, rate);
         ^
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c: In function ‘snd_hdac_acomp_get_eld’:
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:252:47: warning: passing argument 3 of ‘acomp->ops->get_eld’ makes integer from pointer without a cast [-Wint-conversion]
  return acomp->ops->get_eld(acomp->dev, port, audio_enabled,
                                               ^
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:252:47: note: expected ‘int’ but argument is of type ‘bool * {aka _Bool *}’
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:253:8: warning: passing argument 4 of ‘acomp->ops->get_eld’ from incompatible pointer type [-Wincompatible-pointer-types]
        buffer, max_bytes);
        ^
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:253:8: note: expected ‘bool * {aka _Bool *}’ but argument is of type ‘char *’
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:253:16: warning: passing argument 5 of ‘acomp->ops->get_eld’ makes pointer from integer without a cast [-Wint-conversion]
        buffer, max_bytes);
                ^
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:253:16: note: expected ‘unsigned char *’ but argument is of type ‘int’
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:252:9: error: too few arguments to function ‘acomp->ops->get_eld’
  return acomp->ops->get_eld(acomp->dev, port, audio_enabled,
         ^
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c: In function ‘snd_hdac_sync_audio_rate’:
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:216:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c: In function ‘snd_hdac_acomp_get_eld’:
/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.c:254:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.o' failed
make[3]: *** [/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore/hdac_i915.o] Error 1
scripts/Makefile.build:403: recipe for target '/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore' failed
make[2]: *** [/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build/hdacore] Error 2
Makefile:1420: recipe for target '_module_/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build' failed
make[1]: *** [_module_/var/lib/dkms/oem-audio-hda-daily/0.201612080732~ubuntu16.04.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-87-generic'
Makefile:53: recipe for target 'all' failed
make: *** [all] Error 2

答案1

删除此 OEM 包。Ubuntu 16.04 不支持它。

sudo apt purge oem-audio-hda-daily-dkms

答案2

查看启动板错误1755309 i915_component.h 的 pin_eld_notify 函数原型错误,导致 HDMI 音频驱动程序构建问题4.4 内核(16.04 的默认内核)的问题在于,Canonical 抓取了 /usr/src/linux-headers-4.4.0-xxx/include/drm/i915_component.h 的候选版本,但没有注意到最终版本删除了 pin_eld_notify 上的一个参数,导致 dkms 重建失败。您可以编辑掉第三个参数“pipe”,编译就会成功。这一直到内核版本 4.4.0-140 左右,当时接口更改导致许多其他问题 - 已在当时可用的后续内核中修复。

相关内容