aptd (python3) 的 CPU 使用率达到 100%?如何解决此进程问题?

aptd (python3) 的 CPU 使用率达到 100%?如何解决此进程问题?

我已经遇到这种情况有一段时间了 - 不太清楚是什么原因造成的。

图像

有一两个进程(这里/usr/sbin/aptd)的 CPU 使用率总是飙升至 98-100%,我不确定如何解决这个问题。

有人介意澄清一下问题是什么吗?卸载 Python 2.7(和依赖项,即 Python 3 等)是否有帮助?

谢谢。

编辑:sudo apt-get update出现以下错误:

david@david-Blade:~$ sudo apt-get upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
david@david-Blade:~$  sudo apt-get -y update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

更新 1:

尝试运行sudo killall -9 apt-getsudo kill -9 _pid_按照说明进行操作这里但似乎我无法做到这一点?因此,dpkg 被另一个进程阻止,我无法运行sudo dpkg-reconfigure -phigh -asudo dpkg --configure -a

david@david-Blade:~$ sudo killall -9 apt-get
apt-get: no process found
david@david-Blade:~$ sudo kill -9 _pid_ 
kill: failed to parse argument: '_pid_'

更新 2:

运行“sudo dkpg --configure -a”并禁用我的 UEFI 启动器。运行后sudo apt-get update出现以下错误日志:

david@david-Blade:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  bsdtar libgsoap8 libmuparser2v5 libqt4-opengl libvncserver1 linux-image-extra-4.4.0-31-generic
  linux-image-extra-4.4.0-42-generic linux-signed-image-4.4.0-42-generic linux-tools-4.4.0-42
  linux-tools-4.4.0-42-generic python3-blinker python3-cffi-backend python3-cryptography python3-dateutil
  python3-idna python3-jwt python3-oauthlib python3-requests-oauthlib python3-tz ruby-childprocess ruby-domain-name
  ruby-erubis ruby-ffi ruby-http-cookie ruby-i18n ruby-listen ruby-log4r ruby-mime-types ruby-net-scp ruby-net-sftp
  ruby-net-ssh ruby-netrc ruby-nokogiri ruby-rb-inotify ruby-rest-client ruby-sqlite3 ruby-unf ruby-unf-ext sqlite3
  thunderbird-locale-en thunderbird-locale-en-gb thunderbird-locale-en-us virtualbox-dkms
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  apparmor base-files distro-info-data dkms gnome-software gnome-software-common google-chrome-stable im-config
  initramfs-tools initramfs-tools-bin initramfs-tools-core language-pack-en language-pack-gnome-en libapparmor-perl
  libapparmor1 libc-bin libc-dev-bin libc6 libc6:i386 libc6-dbg libc6-dev libc6-i386 libqt5core5a libqt5dbus5
  libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite libqt5widgets5 libqt5xml5
  libwhoopsie0 locales macbuntu-os-icons-lts-v7 macbuntu-os-ithemes-lts-v7 multiarch-support python3-distupgrade
  python3-update-manager r-base r-base-core r-base-dev r-base-html r-cran-cluster r-cran-codetools r-doc-html
  r-recommended snapd ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk unattended-upgrades update-manager
  update-manager-core update-notifier update-notifier-common virtualbox-5.1 whoopsie
57 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 192 MB of archives.
After this operation, 865 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 54.0.2840.90-1
  404  Not Found [IP: 2607:f8b0:4009:812::200e 80]
Get:2 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-base-core 3.3.2-1xenial0 [21.0 MB]                          
Ign:3 http://ppa.launchpad.net/noobslab/macbuntu/ubuntu xenial/main i386 macbuntu-os-icons-lts-v7 all 3.18.7~xenial~NoobsLab.com
Get:4 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 base-files amd64 9.4ubuntu4.3 [67.7 kB]
Ign:5 http://ppa.launchpad.net/noobslab/macbuntu/ubuntu xenial/main i386 macbuntu-os-ithemes-lts-v7 all 3.18.7~xenial~NoobsLab.com
Err:3 http://ppa.launchpad.net/noobslab/macbuntu/ubuntu xenial/main i386 macbuntu-os-icons-lts-v7 all 3.18.7~xenial~NoobsLab.com
  404  Not Found
Err:5 http://ppa.launchpad.net/noobslab/macbuntu/ubuntu xenial/main i386 macbuntu-os-ithemes-lts-v7 all 3.18.7~xenial~NoobsLab.com
  404  Not Found
Get:6 http://download.virtualbox.org/virtualbox/debian xenial/contrib amd64 virtualbox-5.1 amd64 5.1.8-111374~Ubuntu~xenial [65.2 MB]
Err:7 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-i386 amd64 2.23-0ubuntu4           
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:8 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev amd64 2.23-0ubuntu4
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:9 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-dev-bin amd64 2.23-0ubuntu4
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:10 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dbg amd64 2.23-0ubuntu4
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:11 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6 amd64 2.23-0ubuntu4
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:12 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6 i386 2.23-0ubuntu4
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Ign:13 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 locales all 2.23-0ubuntu4  
Err:14 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-bin amd64 2.23-0ubuntu4
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Get:15 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 language-pack-en all 1:16.04+20161009 [145 kB]
Get:16 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 language-pack-gnome-en all 1:16.04+20161009 [169 kB]
Ign:17 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-release-upgrader-gtk all 1:16.04.17       
Ign:18 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-release-upgrader-core all 1:16.04.17
Ign:19 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 python3-distupgrade all 1:16.04.17
Get:20 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-manager all 1:16.04.4 [543 kB]
Get:21 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-cran-cluster 2.0.5-1xenial0 [490 kB]                       
Get:22 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-cran-codetools 0.2-15-1cran1xenial0 [45.0 kB]            
Get:23 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-base 3.3.2-1xenial0 [40.4 kB]                              
Get:24 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-recommended 3.3.2-1xenial0 [2,708 B]                   
Get:25 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-base-dev 3.3.2-1xenial0 [4,306 B]                          
Get:26 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-doc-html 3.3.2-1xenial0 [547 kB]                           
Get:27 http://cran.rstudio.com/bin/linux/ubuntu xenial/ r-base-html 3.3.2-1xenial0 [85.7 kB]                       
Get:28 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-manager-core all 1:16.04.4 [5,332 B]     
Get:29 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-update-manager all 1:16.04.4 [31.5 kB]
Get:30 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-notifier amd64 3.168.2 [48.2 kB]
Get:31 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-notifier-common all 3.168.2 [163 kB]
Get:32 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5core5a amd64 5.5.1+dfsg-16ubuntu7.2 [1,817 kB]
Get:33 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5dbus5 amd64 5.5.1+dfsg-16ubuntu7.2 [175 kB]
Get:34 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5network5 amd64 5.5.1+dfsg-16ubuntu7.2 [540 kB]
Get:35 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5gui5 amd64 5.5.1+dfsg-16ubuntu7.2 [2,287 kB]
Get:36 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5widgets5 amd64 5.5.1+dfsg-16ubuntu7.2 [2,253 kB]
Get:37 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5opengl5 amd64 5.5.1+dfsg-16ubuntu7.2 [128 kB]
Get:38 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5printsupport5 amd64 5.5.1+dfsg-16ubuntu7.2 [174 kB]
Get:39 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 whoopsie amd64 0.2.52.2 [22.7 kB]               
Get:40 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwhoopsie0 amd64 0.2.52.2 [9,898 B]           
Get:41 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor1 amd64 2.10.95-0ubuntu2.5 [31.6 kB] 
Err:42 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 multiarch-support amd64 2.23-0ubuntu4           
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Get:43 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info-data all 0.28ubuntu0.2 [4,006 B]    
Ign:44 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 initramfs-tools all 0.122ubuntu8.5               
Ign:45 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 initramfs-tools-core all 0.122ubuntu8.5          
Err:46 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 initramfs-tools-bin amd64 0.122ubuntu8.5        
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Get:47 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-perl amd64 2.10.95-0ubuntu2.5 [31.4 kB]
Get:48 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apparmor amd64 2.10.95-0ubuntu2.5 [446 kB]      
Get:49 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dkms all 2.2.0.3-2ubuntu11.3 [66.1 kB]          
Err:50 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 gnome-software amd64 3.20.1+git20160923.2.7374bdc-0ubuntu1~xenial1
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Ign:51 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 gnome-software-common all 3.20.1+git20160923.2.7374bdc-0ubuntu1~xenial1
Ign:52 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 im-config all 0.29-1ubuntu12.2                   
Get:53 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5sql5 amd64 5.5.1+dfsg-16ubuntu7.2 [104 kB]
Get:54 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5sql5-sqlite amd64 5.5.1+dfsg-16ubuntu7.2 [33.1 kB]
Get:55 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqt5xml5 amd64 5.5.1+dfsg-16ubuntu7.2 [91.9 kB]
Err:56 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 snapd amd64 2.16ubuntu3                         
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Ign:57 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 unattended-upgrades all 0.90ubuntu0.1            
Err:13 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 locales all 2.23-0ubuntu4                        
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:17 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-release-upgrader-gtk all 1:16.04.17       
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:18 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-release-upgrader-core all 1:16.04.17      
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:19 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 python3-distupgrade all 1:16.04.17               
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:44 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 initramfs-tools all 0.122ubuntu8.5               
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:45 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 initramfs-tools-core all 0.122ubuntu8.5          
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:51 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 gnome-software-common all 3.20.1+git20160923.2.7374bdc-0ubuntu1~xenial1
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:52 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 im-config all 0.29-1ubuntu12.2                   
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:57 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 unattended-upgrades all 0.90ubuntu0.1            
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Fetched 96.9 MB in 12s (7,565 kB/s)                                                                                  
E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-i386_2.23-0ubuntu4_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.23-0ubuntu4_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.23-0ubuntu4_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dbg_2.23-0ubuntu4_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.23-0ubuntu4_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.23-0ubuntu4_i386.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/locales_2.23-0ubuntu4_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-bin_2.23-0ubuntu4_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_54.0.2840.90-1_amd64.deb 404  Not Found [IP: 2607:f8b0:4009:812::200e 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-release-upgrader/ubuntu-release-upgrader-gtk_16.04.17_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-release-upgrader/ubuntu-release-upgrader-core_16.04.17_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-release-upgrader/python3-distupgrade_16.04.17_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.23-0ubuntu4_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/i/initramfs-tools/initramfs-tools_0.122ubuntu8.5_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/i/initramfs-tools/initramfs-tools-core_0.122ubuntu8.5_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/i/initramfs-tools/initramfs-tools-bin_0.122ubuntu8.5_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/gnome-software/gnome-software_3.20.1+git20160923.2.7374bdc-0ubuntu1~xenial1_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/g/gnome-software/gnome-software-common_3.20.1+git20160923.2.7374bdc-0ubuntu1~xenial1_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/i/im-config/im-config_0.29-1ubuntu12.2_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/s/snapd/snapd_2.16ubuntu3_amd64.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/pool/main/u/unattended-upgrades/unattended-upgrades_0.90ubuntu0.1_all.deb 404  Not Found [IP: 2001:67c:1360:8001::21 80]

E: Failed to fetch http://ppa.launchpad.net/noobslab/macbuntu/ubuntu/pool/main/m/macbuntu-os-icons-lts-v7/macbuntu-os-icons-lts-v7_3.18.7~xenial~NoobsLab.com_all.deb 404  Not Found

E: Failed to fetch http://ppa.launchpad.net/noobslab/macbuntu/ubuntu/pool/main/m/macbuntu-os-ithemes-lts-v7/macbuntu-os-ithemes-lts-v7_3.18.7~xenial~NoobsLab.com_all.deb 404  Not Found

E: Unable to fetch some archives, try running apt-get update or apt-get --fix-missing.

相关内容