package r8168-dkms 8.049.02-1ubuntu1 failed to install/upgrade: »installiertes r8168-dkms-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 10 zurück

Bug #1979135 reported by Ulrich Lienert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
r8168 (Ubuntu)
New
Undecided
Unassigned

Bug Description

issue arises during update

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: r8168-dkms 8.049.02-1ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-51.58-generic 5.13.19
Uname: Linux 5.13.0-51-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Sun Jun 19 10:37:53 2022
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-stella-osaka-precise-amd64-20121101-2
ErrorMessage: »installiertes r8168-dkms-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 10 zurück
InstallationDate: Installed on 2018-01-14 (1616 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20121101-11:02
PackageArchitecture: all
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.18-9
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.5
SourcePackage: r8168
Title: package r8168-dkms 8.049.02-1ubuntu1 failed to install/upgrade: »installiertes r8168-dkms-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 10 zurück
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ulrich Lienert (prairieroamer) wrote :
Revision history for this message
Javier Schwersensky (javisw) wrote :
Download full text (5.3 KiB)

Same problem here. Here is the log file:
DKMS make.log for r8168-8.049.02 for kernel 5.18.10-76051810-generic (x86_64)
Fri 09 Sep 2022 12:38:04 PM CDT
make: Entering directory '/usr/src/linux-headers-5.18.10-76051810-generic'
  CC [M] /var/lib/dkms/r8168/8.049.02/build/r8168_n.o
  CC [M] /var/lib/dkms/r8168/8.049.02/build/r8168_asf.o
  CC [M] /var/lib/dkms/r8168/8.049.02/build/rtl_eeprom.o
  CC [M] /var/lib/dkms/r8168/8.049.02/build/rtltool.o
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c: In function ‘rtl8168_mac_loopback_test’:
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:3668:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration]
 3668 | pci_dma_sync_single_for_device(tp->pci_dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | dma_sync_single_for_device
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c: In function ‘rtl8168_get_mac_address’:
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24140:34: error: assignment of read-only location ‘*(dev->dev_addr + (sizetype)i)’
24140 | dev->dev_addr[i] = RTL_R8(tp, MAC0 + i);
      | ^
In file included from ./include/linux/string.h:253,
                 from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:22,
                 from ./arch/x86/include/asm/timex.h:5,
                 from ./include/linux/timex.h:67,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:13,
                 from /var/lib/dkms/r8168/8.049.02/build/r8168_n.c:43:
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c: In function ‘rtl8168_set_mac_address’:
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24171:19: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
24171 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      | ~~~^~~~~~~~~~
./include/linux/fortify-string.h:362:27: note: in definition of macro ‘__fortify_memcpy_chk’
  362 | __underlying_##op(p, q, __fortify_size); \
      | ^
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24171:9: note: in expansion of macro ‘memcpy’
24171 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      | ^~~~~~
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24171:19: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
24171 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      | ~~~^~~~~~~~~~
./include/linux/fortify-string.h:362:27: note: in definition of macro ‘__fortify_memcpy_chk’
  362 | __underlying_##op(p, q, __fortify_size); \
      | ^
/var/lib/dkms/r8168/8.049.02/build/r816...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.