Cannot execute sudo apt-get-f install command on ubuntu 16.04

Asked 1 years ago, Updated 1 years ago, 118 views

I entered sudo apt-get-f install and the command on the terminal.

 Loading package list... Done
Creating dependency tree                
Reading state information...completed
Resolving dependencies...completed
The following packages have been installed automatically, but are no longer required:
linux-headers-4.4.0-59 linux-headers-4.4.0-59-generic linux-headers-4.4.0-62
linux-headers-4.4.0-62-generic linux-headers-4.4.0-63
linux-headers-4.4.0-63-generic linux-image-4.4.0-59-generic
linux-image-4.4.0-62-generic linux-image-4.4.0-63-generic
linux-image-extra-4.4.0-59-generic linux-image-extra-4.4.0-62-generic
linux-image-extra-4.4.0-63-generic linux-signed-image-4.4.0-59-generic
linux-signed-image-4.4.0-62-generic linux-signed-image-4.4.0-63-generic
Please use 'sudo apt autoremove' to delete this.
The following additional packages will be installed:
python-appindicator
The following packages will be upgraded:
python-appindicator
Upgrade: 1, New Install: 0, Delete: 0, Hold: 308.
Three packages have not been fully installed or removed.
You must retrieve the 7,740B archive.
This operation frees up 36.9 kB of disk space.
US>Do you want to continue? [Y/n] Y
Retrieved: 1 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-appindicator amd64 12.10.1 + 16.04.20170215-0ubuntu1 [7,740B]
7,740 B obtained in 0 seconds (75.0 kB/s)       
US>(Loading database... There are currently 325947 files and directories installed.)
... Preparing to deploy /python-appindicator_12.10.1+16.04.20170215-0ubuntu1_amd64.deb...
/var/lib/dpkg/info/python-appindicator.prem:6:/var/lib/dpkg/info/python-appindicator.prem:pyclean:not found
dpkg:warning:subprocess old pre-removal script returned error exit status 127
dpkg: Try running the script from the new package instead...
/var/lib/dpkg/tmp.ci/prerm:6:/var/lib/dpkg/tmp.ci/prerm:pyclean:not found
dpkg: Error processing archive /var/cache/apt/archives/python-appindicator_12.10.1 +16.04.20170215-0ubuntu1_amd64.deb --unpack):
Subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python-appindicator.postinst:6:/var/lib/dpkg/info/python-appindicator.postinst:pycompile:not found
dpkg: Error cleaning up:
Subprocess installed post-installation script returned error termination status 127
Error occurred during processing:
/var/cache/apt/archives/python-appindicator_12.10.1 +16.04.20170215-0ubuntu1_amd64.deb
E: Sub-process/usr/bin/dpkg returned an error code (1)

Unable to execute with error.
The environment is Ubuntu 16.04.
What is the cause of this?I would appreciate it if you could let me know.

The sudo apt-get update log is as follows:

Hits: 1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease 
Ignore: 2 http://dl.google.com/linux/earth/deb stable InRelease                          
Retrieved: 3 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [102kB]          
Retrieved: 4 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease [102kB]        
hits: 5 http://dl.google.com/linux/earth/deb stable release                          
Retrieved: 6 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [572kB]
Retrieved: 7 http://security.ubuntu.com/ubuntu xenial-security InRelease [102kB]           
Retrieved: 8 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [553kB] 
Retrieved: 10 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [299kB]
Retrieved: 11 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [195kB]
Retrieved: 12 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [492kB]
Retrieved: 13 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [473kB]
Retrieved: 14 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [163kB]
Retrieved: 15 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [203kB]
Retrieved: 16 http://jp.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2,516B]
Retrieved: 17 http://jp.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328B]
Retrieved: 18 http://jp.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4,672B]
Hits: 19 http://archive.canonical.com/ubuntu xenial InRelease                        
Hits: 20 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu xenial InRelease
Retrieved: 21 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [54.6kB]
Retrieved: 22 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [50.7 kB]
Retrieved: 23 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [35.8 kB]
Retrieved: 24 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [52.2 kB]
3,460 kB in 1 second (1,941 kB/s)                             
AppStream cache update completed, but some metadata was ignored due to errors.
Loading package list... Done

linux ubuntu apt

2022-09-30 21:24

1 Answers

The python package is irrelevant.It's just that the /boot is full and cannot be installed.
sudo apt autoremove should work.


2022-09-30 21:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.