소프트웨어 속성 GTK Ubuntu 18.04를 시작할 때 UnicodeDecodeError 오류가 발생했습니다.

소프트웨어 속성 GTK Ubuntu 18.04를 시작할 때 UnicodeDecodeError 오류가 발생했습니다.

Ubuntu 18.04에서 Software-properties-gtk를 시작하려고 하면 문제가 있습니다. 데스크탑 아이콘을 통해 시작할 때 아무 일도 일어나지 않으며 터미널을 통해 다음 오류가 나타납니다.

root:~# software-properties-gtk 
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 189, in __init__
    self.show_keys()
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 886, in show_keys
    for key in self.apt_key.list():
  File "/usr/lib/python3/dist-packages/softwareproperties/AptAuth.py", line 64, in list
    for line in p:
  File "/usr/lib/python3.6/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 6808: invalid continuation byte

파일에 UTF8이 아닌 문자가 포함된 것 같지만 어떤 문자인지 알 수 없습니다. /etc/apt/sources.list.d디렉토리는 비어 있으며 다음을 /etc/apt/sources.list포함합니다.

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse*

deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/

편집하다

그래서 @user966203님의 제안 덕분에 apt-key list.
"é" 문자가 "\xe9"로 인코딩된 키를 찾았습니다... . 나는 그것을 제거했다
uid [ inconnue] Jean-Marc Le Peuv\xe9\x64ic <[email protected]>
apt-key del KEYID

답변1

같은 문제가 있었는데(갑자기)... 이것은 나에게 도움이 되었습니다(Google 어딘가에서 찾았습니다)

sudo nano /etc/apache2/envvars

그러다가 이걸 찾아...

대신 시스템 기본 로캘을 사용하려면 다음 줄의 주석 처리를 해제하세요.

. /etc/default/locale

누구를 인정해야 할지 기억하지 못해 죄송합니다

관련 정보