Difference between revisions of "Unable to Upgrade Ubuntu"
IVSWikiBlue (talk | contribs)  (→UnicodeDecodeError: 'utf-8' codec can't decode byte)  | 
				IVSWikiBlue (talk | contribs)   | 
				||
| 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   | + | When attempting to update Ubuntu from version 14.04 LTS to 16.04, you may encounter an error when entering the following command: <pre>do-release-upgrade</pre>  | 
:[[File:TS1.png]]  | :[[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.  | 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.  | ||
| − | #   | + | # Enter the following command: <pre>grep -avx '.*' /var/lib/dpkg/status</pre>  | 
#: This will display any not utf-8 characters in the file  | #: This will display any not utf-8 characters in the file  | ||
#: [[File:TS1.png]]  | #: [[File:TS1.png]]  | ||
| − | #   | + | # Enter the following command: <pre>sudo nano /var/lib/dpkg/status</pre>  | 
| − | # Locate the bad characters and delete them  | + | # Locate the bad characters and delete them.  | 
| − | # Save the file  | + | # Save the file.  | 
==/boot is out of space==  | ==/boot is out of space==  | ||
| − | #   | + | # Enter the following command: <pre>dpkg -l | grep linux-image</pre>  | 
#: This will display all the kernels currently installed. All but the most recent can be safely deleted.  | #: This will display all the kernels currently installed. All but the most recent can be safely deleted.  | ||
| − | #   | + | # Enter the following: <pre>apt-get remove ''old-linux-kernel-package-name''</pre>  | 
#: ex: ''apt-get remove linux-image-3.13.0-32-generic''  | #: ex: ''apt-get remove linux-image-3.13.0-32-generic''  | ||
Revision as of 13:49, 24 April 2019
UnicodeDecodeError: 'utf-8' codec can't decode byte
When attempting to update Ubuntu from version 14.04 LTS to 16.04, you may encounter an error when entering the following command:do-release-upgrade
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.
-  Enter the following command: 
grep -avx '.*' /var/lib/dpkg/status
 -  Enter the following command: 
sudo nano /var/lib/dpkg/status
 - Locate the bad characters and delete them.
 - Save the file.
 
/boot is out of space
-  Enter the following command: 
dpkg -l | grep linux-image
- This will display all the kernels currently installed. All but the most recent can be safely deleted.
 
 -  Enter the following: 
apt-get remove ''old-linux-kernel-package-name''
- ex: apt-get remove linux-image-3.13.0-32-generic
 
 
