package apt 1.2.10ubuntu1 failed to install/upgrade: unable t o stat './etc/kernel' (which I was about to install): Input/output error

Bug #1897865 reported by Kęstutis Grigas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
................................ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 218, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 66, in add_info
    check_attachment_for_errors(report, attachment)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 170, in check_attachment_for_errors
    trim_dpkg_log(report)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 468, in trim_dpkg_log
    report['DpkgTerminalLog'] = '\n'.join([str(line.encode('utf-8')) for line in lines])
  File "/usr/share/apport/general-hooks/ubuntu.py", line 468, in <listcomp>
    report['DpkgTerminalLog'] = '\n'.join([str(line.encode('utf-8')) for line in lines])
AttributeError: 'bytes' object has no attribute 'encode'
...

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: apt 1.2.10ubuntu1
Uname: Linux 4.1.19-v7+ armv7l
ApportVersion: 2.20.1-0ubuntu2
Architecture: armhf
Date: Tue Sep 29 21:03:38 2020
ErrorMessage: unable to stat './etc/kernel' (which I was about to install): Input/output error
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.3
 apt 1.2.10ubuntu1
SourcePackage: apt
Title: package apt 1.2.10ubuntu1 failed to install/upgrade: unable to stat './etc/kernel' (which I was about to install): Input/output error
UpgradeStatus: Upgraded to bionic on 2020-09-29 (0 days ago)

Revision history for this message
Kęstutis Grigas (kestutis97) wrote :
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.