LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-15-2022, 02:15 PM   #1
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Rep: Reputation: Disabled
aptitude failed update


I am not sure if I updated before from live media but I got this message:
Code:
apt update
E: Syntax error /etc/apt/apt.conf.d/60icons-large:2: Extra junk at end of file
I do not think this is related with live media env but with some corrupted files. Anyone with more knowledge please come forward with some tips !

Thanks!

Last edited by lattimro; 01-19-2022 at 10:46 AM.
 
Old 01-15-2022, 02:36 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
I would carefully examine that file.
 
1 members found this post helpful.
Old 01-15-2022, 02:43 PM   #3
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
I would carefully examine that file.
it was not modified since:
Code:
ll /etc/apt/apt.conf.d/60icons-large
-rw-r--r--. 1 root root 348 Mar  2  2019 /etc/apt/apt.conf.d/60icons-large
 
Old 01-15-2022, 03:10 PM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
I would still
Code:
dpkg -C apt-config-icons-large
dpkg -V apt-config-icons-large
nevertheless. I see security context set for the file (dot at the end of permissions string). I don't think this is the default on Ubuntu.

Last edited by shruggy; 01-15-2022 at 03:18 PM.
 
1 members found this post helpful.
Old 01-15-2022, 03:16 PM   #5
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
That file is used for downloading icons from graphical update apps and should not interfere with command line. You should be able to delete it to get it out of the way.
It is not related to using live boot media as I have installed stuff in live environments before with no issue.
 
1 members found this post helpful.
Old 01-15-2022, 03:18 PM   #6
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
I would still
Code:
dpkg -C apt-config-icons-large
dpkg -V apt-config-icons-large
nevertheless. I see ACLs set for the file (dot at the end of permissions string). I don't think this is the default.
I just tried dpkg before

Code:
dpkg -C apt-config-icons-large
root@ubuntu:/# dpkg -V apt-config-icons-large
??5?????? c /etc/apt/apt.conf.d/60icons-large
 
Old 01-15-2022, 03:21 PM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
The only check dpkg -V performs is MD5 verification. 5 in the output means the checksum for the file is different from what was shipped with the package. So, the file definitely has changed since it was installed.

I would apt purge apt-config-icons-large, then install it again if needed. Just removing the package won't help as the file is considered conffile and won't be removed.

Last edited by shruggy; 01-15-2022 at 03:29 PM.
 
1 members found this post helpful.
Old 01-15-2022, 03:27 PM   #8
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uteck View Post
That file is used for downloading icons from graphical update apps and should not interfere with command line. You should be able to delete it to get it out of the way.
It is not related to using live boot media as I have installed stuff in live environments before with no issue.
thanks for confirming, that's what I thought, I fixed a lot of stuff from live.

Last edited by lattimro; 01-19-2022 at 10:49 AM.
 
Old 01-15-2022, 03:30 PM   #9
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
This . is worrisome

Quote:
ll /etc/apt/apt.conf.d/
total 116
drwxr-xr-x. 2 root root 4096 Jan 15 15:44 ./
drwxr-xr-x. 7 root root 4096 Jan 7 17:11 ../
-rw-rw-r--. 1 root root 49 Jun 18 2019 00aptitude
-rw-rw-r--. 1 root root 40 Jun 18 2019 00trustcdrom
-rw-r--r--. 1 root root 630 Feb 18 2020 01autoremove
-r--r--r-- 1 root root 124 Jan 13 19:07 01autoremove-kernels
-r--r--r-- 1 root root 496 Dec 13 2020 01autoremove-postgresql
-rw-r--r--. 1 root root 92 Apr 9 2020 01-vendor-ubuntu
-rw-r--r--. 1 root root 168 Oct 15 12:23 10periodic
-rw-r--r--. 1 root root 108 Apr 9 2018 15update-stamp
-rw-r--r-- 1 root root 604 Jul 27 09:57 20apt-esm-hook.conf
-rw-r--r--. 1 root root 162 Feb 16 2019 20apt-show-versions
-rw-r--r--. 1 root root 85 Apr 9 2018 20archive
-rw-r--r--. 1 root root 168 Oct 15 12:23 20auto-upgrades
-rw-r--r--. 1 root root 243 Dec 16 2009 20dbus
-rw-r--r--. 1 root root 1040 Mar 2 2019 20packagekit
-rw-r--r-- 1 root root 114 Mar 26 2021 20snapd.conf
-rw-r--r--. 1 root root 2592 Mar 2 2019 50appstream
-rw-r--r--. 1 root root 625 Mar 16 2018 50command-not-found
-rw-r--r--. 1 root root 6155 Oct 23 2020 50unattended-upgrades
-rw-r--r--. 1 root root 90 May 21 2019 51ubuntu-advantage-esm
-rw-r--r--. 1 root root 435 Mar 2 2019 60icons
-rw-r--r--. 1 root root 251 Mar 2 2019 60icons-hidpi
-rw-r--r--. 1 root root 348 Mar 2 2019 60icons-large
-rw-r--r--. 1 root root 253 Mar 2 2019 60icons-large-hidpi
-rw-r--r--. 1 root root 182 Feb 26 2019 70debconf
-rw-r--r--. 1 root root 32 Jan 14 10:45 99synaptic
-rw-r--r--. 1 root root 305 Apr 9 2018 99update-notifier
 
Old 01-15-2022, 03:31 PM   #10
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
The only check dpkg -V performs is MD5 verification. 5 in the output means the checksum for the file is different from what was shipped with the package. So, the file definitely has changed since it was installed.

I would apt purge apt-config-icons-large, then install it again if needed. Just removing the package won't help as the file is considered conffile and won't be removed.
I wish would have been worked:

Code:
apt purge apt-config-icons-large
E: Syntax error /etc/apt/apt.conf.d/60icons-large:2: Extra junk at end of file

Last edited by lattimro; 01-15-2022 at 03:43 PM.
 
Old 01-15-2022, 03:31 PM   #11
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Are you using SELinux? What is the output of ls -Z for that directory?

Last edited by shruggy; 01-15-2022 at 03:35 PM.
 
1 members found this post helpful.
Old 01-15-2022, 03:40 PM   #12
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
AFAIK SELinux is disabled.

Code:
sestatus
Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "/usr/lib/python3.9/site.py", line 606, in <module>
    main()
  File "/usr/lib/python3.9/site.py", line 593, in main
    known_paths = addsitepackages(known_paths)
  File "/usr/lib/python3.9/site.py", line 376, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/usr/lib/python3.9/site.py", line 214, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/lib/python3.9/site.py", line 170, in addpackage
    for n, line in enumerate(f):
  File "/usr/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Code:
ls -Z
system_u:object_r:etc_t:s0 00aptitude               system_u:object_r:etc_t:s0 20packagekit
system_u:object_r:etc_t:s0 00trustcdrom                                      ? 20snapd.conf
system_u:object_r:etc_t:s0 01autoremove             system_u:object_r:etc_t:s0 50appstream
                         ? 01autoremove-kernels     system_u:object_r:etc_t:s0 50command-not-found
                         ? 01autoremove-postgresql  system_u:object_r:etc_t:s0 50unattended-upgrades
system_u:object_r:etc_t:s0 01-vendor-ubuntu         system_u:object_r:etc_t:s0 51ubuntu-advantage-esm
system_u:object_r:etc_t:s0 10periodic               system_u:object_r:etc_t:s0 60icons
system_u:object_r:etc_t:s0 15update-stamp           system_u:object_r:etc_t:s0 60icons-hidpi
                         ? 20apt-esm-hook.conf      system_u:object_r:etc_t:s0 60icons-large
system_u:object_r:etc_t:s0 20apt-show-versions      system_u:object_r:etc_t:s0 60icons-large-hidpi
system_u:object_r:etc_t:s0 20archive                system_u:object_r:etc_t:s0 70debconf
system_u:object_r:etc_t:s0 20auto-upgrades          system_u:object_r:etc_t:s0 99synaptic
system_u:object_r:etc_t:s0 20dbus                   system_u:object_r:etc_t:s0 99update-notifier
 
Old 01-15-2022, 03:48 PM   #13
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
The output of sestatus doesn't look very reassuring. What is the output of getenforce?
 
Old 01-15-2022, 03:54 PM   #14
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
The output of sestatus doesn't look very reassuring. What is the output of getenforce?
pretty much the same. Sure is not selinux because was not enabled.

Last edited by lattimro; 01-19-2022 at 10:51 AM.
 
Old 01-15-2022, 03:58 PM   #15
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Quote:
Originally Posted by lattimro View Post
pretty much the same
?? AFAIK, getenforce is not a Python script, so it cannot end in a Python crash.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] synaptic, apt-get update, apt update all stopped working tnandy Linux - Software 6 09-09-2020 03:50 PM
[SOLVED] apt-offline fails to install updates to offline computer with ERROR: Failed to unlink /var/lib/apt/lists/partial/ JoLinuxUser Ubuntu 9 09-12-2019 08:11 AM
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 05:50 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration