Difference between revisions of "Unable to Upgrade Ubuntu"

From IVS Wiki
Jump to: navigation, search
(Created page with "==UnicodeDecodeError: 'utf-8' codec can't decode byte== # '''grep -avx '.*' /var/lib/dpkg/status''' #: This will display any not utf-8 characters in the file # '''sudo nano /v...")
 
(UnicodeDecodeError: 'utf-8' codec can't decode byte)
Line 1: Line 1:
 
==UnicodeDecodeError: 'utf-8' codec can't decode byte==
 
==UnicodeDecodeError: 'utf-8' codec can't decode byte==
 +
When attempting to update Ubuntu from version 14.04 LTS to 16.04 using the command '''do-release-upgrade''' you may encounter the following error:
 +
:[[File:TS1.png]]
 +
This error is caused by non utf-8 characters in the /var/lib/dpkg/status file. Follow the instructions below to identify and remove these characters.
 
# '''grep -avx '.*' /var/lib/dpkg/status'''
 
# '''grep -avx '.*' /var/lib/dpkg/status'''
 
#: This will display any not utf-8 characters in the file
 
#: This will display any not utf-8 characters in the file
# '''sudo nano /var/lib/dpkgs/status'''
+
#: [[File:TS1.png]]
 +
# '''sudo nano /var/lib/dpkg/status'''
 
# Locate the bad characters and delete them
 
# Locate the bad characters and delete them
 
# Save the file
 
# Save the file

Revision as of 13:18, 16 March 2018

UnicodeDecodeError: 'utf-8' codec can't decode byte

When attempting to update Ubuntu from version 14.04 LTS to 16.04 using the command do-release-upgrade you may encounter the following error:

TS1.png

This error is caused by non utf-8 characters in the /var/lib/dpkg/status file. Follow the instructions below to identify and remove these characters.

  1. grep -avx '.*' /var/lib/dpkg/status
    This will display any not utf-8 characters in the file
    TS1.png
  2. sudo nano /var/lib/dpkg/status
  3. Locate the bad characters and delete them
  4. Save the file

/boot is out of space

  1. dpkg -l | grep linux-image
    This will display all the kernels currently installed. All but the most recent can be safely deleted.
  2. apt-get remove old-linux-kernel-package-name
    ex: apt-get remove linux-image-3.13.0-32-generic