AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[apport](ubuntu)

Martin Hope
Scott Stensland
Asked: 2020-08-14 15:50:18 +0800 CST

systemd [1]:apport-autoreport.service:失败,结果为“start-limit-hit”

  • 1

systemd 正在持续使用 100% ... 这是顶部

top - 19:47:09 up 13 min,  1 user,  load average: 3.26, 2.62, 1.69
Tasks: 306 total,   4 running, 294 sleeping,   0 stopped,   8 zombie
%Cpu(s): 35.5 us, 12.6 sy,  0.0 ni, 51.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  11858.2 total,   5183.4 free,   3433.2 used,   3241.6 buff/cache
MiB Swap:   2048.0 total,   2048.0 free,      0.0 used.   7913.7 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                    
      1 root      20   0  268660 110536   8532 R 100.0   0.9  11:39.36 systemd                                                                                    
    772 message+  20   0   10988   6768   4116 R  46.0   0.1   5:16.01 dbus-daemon                                                                                
    259 root      19  -1  496536 327492 325464 S  16.8   2.7   2:16.95 systemd-journal                                                                            
    796 syslog    20   0  221104   5832   4052 S  13.9   0.0   1:38.00 rsyslogd                                                                                   
    804 root      20   0  103380  93880   7784 S  13.1   0.8   1:34.41 systemd-logind                                                                             
     18 root      20   0       0      0      0 S   0.7   0.0   0:00.55 ksoftirqd/1                                                                                
   1733 root      20   0  352968 130376  83760 S   0.7   1.1   0:25.47 Xorg                                                                                       
   1916 ava       20   0 4008000 272576 117864 S   0.7   2.2   0:32.40 gnome-shell                                                                                
   3877 ava       20   0 2629148 269672 162688 S   0.7   2.2   0:09.53 Web Content                       

   

这是系统日志

 sudo tail -n 100 /var/log/syslog
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.
Aug 13 19:46:11 kiev systemd[1]: Failed to start Process error reports when automatic reporting is enabled.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Start request repeated too quickly.
Aug 13 19:46:11 kiev systemd[1]: apport-autoreport.service: Failed with result 'start-limit-hit'.

这是一些 dmesg

[    3.942656] systemd[1]: Inserted module 'autofs4'
[    4.005635] systemd[1]: systemd 246-2ubuntu1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[    4.025381] systemd[1]: Detected architecture x86-64.
[    4.046020] systemd[1]: Set hostname to <kiev>.
[    4.132974] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
[    4.137916] systemd[1]: /lib/systemd/system/dbus.service:12: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    4.164397] systemd[1]: /lib/systemd/system/plymouth-start.service:17: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    4.193000] systemd[1]: /lib/systemd/system/gdm.service:30: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.

这发生在我上次系统更新之后......重新启动和/或另一个系统更新后相同......有什么想法吗?

Ubuntu 20.04

systemd apport
  • 2 个回答
  • 6053 Views
Martin Hope
F. Addari
Asked: 2020-03-02 03:44:13 +0800 CST

从 apport 检测到系统程序问题:我应该担心吗?

  • 1

我对 Ubuntu 很陌生,两周前我在笔记本电脑上安装了 18.04。但是有时,就像每隔几天一样,我会从 apport 收到报告“检测到系统程序问题”。我知道我可以禁用它并且还有其他类似的问题,但我只想知道我是否需要担心它。我发布了今天得到的 apport 日志,但它始终是相同的日志:

错误:apport(pid 4610)2020 年 3 月 1 日星期日 11:47:38:调用 pid 1000,信号 11,核心限制 0,转储模式 1

错误:apport(pid 4610)2020 年 3 月 1 日星期日 11:47:38:可执行文件:/usr/bin/gnome-shell(命令行“/usr/bin/gnome-shell”)

错误:apport (pid 4610) Sun Mar 1 11:47:38 2020: debug: session gdbus call: (true,)

错误:apport (pid 4610) Sun Mar 1 11:52:53 2020:写了报告 /var/crash/_usr_bin_gnome-shell.121.crash

错误:apport(pid 4644)2020 年 3 月 1 日星期日 11:52:53:未处理的异常:回溯(最后一次调用):

文件“/usr/share/apport/apport”,第 532 行,在 get_pid_info(pid) 中

文件“/usr/share/apport/apport”,第 78 行,在 get_pid_info proc_pid_fd = os.open('/proc/%s' % pid, os.O_RDONLY | os.O_PATH | os.O_DIRECTORY)

FileNotFoundError:[Errno 2] 没有这样的文件或目录:'/proc/1038' 错误:apport (pid 4644) Sun Mar 1 11:52:53 2020: pid: 4644, uid: 0, gid: 0, euid: 0 , 例如: 0

错误:apport (pid 4644) Sun Mar 1 11:52:53 2020: environment: environ({})

谢谢您的帮助。

编辑:按照 heynnema 的要求:

ls -al /var/crash:
total 20516
drwxrwsrwt  2 root whoopsie     4096 mar  2 12:43 .
drwxr-xr-x 14 root root         4096 ago  5  2019 ..
-rw-r-----  1 gdm  whoopsie 20997898 mar  2 12:43 _usr_bin_gnome-shell.121.crash

ls -al ~/.local/share/gnome-shell/extensions:
impossibile accedere a '/home/addari/.local/share/gnome-shell/extensions': File o directory non esistente

由于它是意大利语,这意味着它无法访问该文件夹,因为它不存在。

free -h
              total        used        free      shared  buff/cache   available
Mem:            11G        1,8G        7,5G        292M        2,2G        9,1G
Swap:          9,3G          0B        9,3G

(今天又发生了,除了pid号和日期/小时之外,总是相同的日志)

编辑2:

ls -al /usr/share/gnome-shell/extensions:
total 16
drwxr-xr-x 4 root root 4096 ago  5  2019 .
drwxr-xr-x 6 root root 4096 feb 20 12:09 ..
drwxr-xr-x 3 root root 4096 ago  5  2019 [email protected]
drwxr-xr-x 3 root root 4096 ago  5  2019 [email protected]


ls -al ~/Desktop
drwxr-xr-x  5 addari addari 4096 mar  1 14:56 .
drwxr-xr-x 30 addari addari 4096 mar  2 17:19 ..
drwxr-xr-x  7 addari addari 4096 feb 24 19:05 01tutorial
drwxr-xr-x 10 addari addari 4096 mar  2 12:27 1M_pre_ms_to_wd
-rw-r--r--  1 addari addari  370 mar  1 14:56 note_cartelle
drwxr-xr-x 10 addari addari 4096 mar  2 12:16 V2_1M_pre_ms_to_wd

sudo lshw -C memory: 
*-cache:0                 
   description: L1 cache
   physical id: 2
   slot: L1 Cache
   size: 64KiB
   capacity: 64KiB
   capabilities: synchronous internal write-back data
   configuration: level=1
  *-cache:1
   description: L1 cache
   physical id: 3
   slot: L1 Cache
   size: 64KiB
   capacity: 64KiB
   capabilities: synchronous internal write-back instruction
   configuration: level=1
 *-cache:2
   description: L2 cache
   physical id: 4
   slot: L2 Cache
   size: 512KiB
   capacity: 512KiB
   capabilities: synchronous internal write-back unified
   configuration: level=2
  *-cache:3
   description: L3 cache
   physical id: 5
   slot: L3 Cache
   size: 3MiB
   capacity: 3MiB
   capabilities: synchronous internal write-back unified
   configuration: level=3
  *-memory
   description: System Memory
   physical id: 7
   slot: System board or motherboard
   size: 12GiB
     *-bank:0
      description: SODIMM DDR4 Synchronous 2133 MHz (0,5 ns)
      product: ATF51264HZ-2G3B2   2
      vendor: 4154
      physical id: 0
      serial: 32363448
      slot: ChannelA-DIMM0
      size: 4GiB
      width: 64 bits
      clock: 2133MHz (0.5ns)
     *-bank:1
      description: [empty]
      physical id: 1
      slot: ChannelA-DIMM1
     *-bank:2
      description: SODIMM DDR4 Synchronous 2133 MHz (0,5 ns)
      product: CT8G4SFS824A.C8FDD1
      vendor: 859B
      physical id: 2
      serial: E1238D7A
      slot: ChannelB-DIMM0
      size: 8GiB
      width: 64 bits
      clock: 2133MHz (0.5ns)
     *-bank:3
      description: [empty]
      physical id: 3
      slot: ChannelB-DIMM1
  *-firmware
   description: BIOS
   vendor: LENOVO
   physical id: d
   version: 1KCN28WW
   date: 11/15/2016
   size: 128KiB
   capacity: 6080KiB
   capabilities: pci upgrade shadowing cdboot bootselect edd int5printscreen int9keyboard int14serial int17printer int10video pc98 acpi usb ls120boot zipboot biosbootspecification netboot
  *-memory UNCLAIMED
   description: Memory controller
   product: Sunrise Point-LP PMC
   vendor: Intel Corporation
   physical id: 1f.2
   bus info: pci@0000:00:1f.2
   version: 21
   width: 32 bits
   clock: 33MHz (30.3ns)
   configuration: latency=0
   resources: memory:d1224000-d1227fff

编辑 3: 离开 .crash 文件后发生了一些新的事情

错误:apport (pid 14161) Mon Mar 2 18:22:06 2020:调用 pid 10465,信号 11,核心限制 0,转储模式 1

错误:apport (pid 14161) Mon Mar 2 18:22:06 2020:可执行文件:/usr/bin/gnome-shell(命令行“/usr/bin/gnome-shell”)

错误:apport (pid 14161) Mon Mar 2 18:22:06 2020: debug: session gdbus call: (true,)

错误:apport (pid 14161) Mon Mar 2 18:22:06 2020: apport: report /var/crash/_usr_bin_gnome-shell.121.crash 已经存在且看不见,没有采取任何措施来避免磁盘使用 DoS

错误:apport(pid 14186)2020 年 3 月 2 日星期一 18:22:06:调用 pid 10474,信号 6,核心限制 18446744073709551615,转储模式 1

错误:apport (pid 14186) Mon Mar 2 18:22:06 2020:忽略难以置信的大核心限制,视为无限制

错误:apport(pid 14186)2020 年 3 月 2 日星期一 18:22:06:可执行文件:/usr/bin/Xwayland(命令行“/usr/bin/Xwayland:1024 -rootless -terminate -accessx -core -listen 4 -listen 5 -displayfd 6")

错误:apport (pid 14186) Mon Mar 2 18:22:06 2020:gdbus 调用错误:错误:GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:名称 org.gnome.SessionManager 不是由任何 .服务文件

错误:apport (pid 14186) 2020 年 3 月 2 日星期一 18:22:06:调试:会话 gdbus 调用:

错误:apport (pid 14186) Mon Mar 2 18:22:09 2020:写了报告 /var/crash/_usr_bin_Xwayland.121.crash

apport
  • 2 个回答
  • 1340 Views
Martin Hope
user981009
Asked: 2019-08-02 05:18:05 +0800 CST

将 apport 报告发送到私人服务器而不是 Canonical

  • 5

有没有办法让我将崩溃报告自动发送到私人服务器?我希望将报告发送到http://example.com,而不是 Canonical。我不确定这是否已经完成或者是 apport 中的一个功能。谢谢。

apport
  • 1 个回答
  • 126 Views
Martin Hope
Bhikkhu Subhuti
Asked: 2019-06-09 15:44:05 +0800 CST

如何查看出了什么问题(“出现问题..报告它)[重复]

  • 2
这个问题在这里已经有了答案:
系统始终以“检测到系统程序问题”对话框启动 3 个答案
3年前关闭。

每次启动时出现“有问题..报告”框时,我怎么知道出了什么问题。我“报告”后如何停止重复?

apport
  • 1 个回答
  • 85 Views
Martin Hope
kallenboone
Asked: 2018-06-20 10:49:07 +0800 CST

所有 apt-get 命令核心转储

  • 0

尝试运行sudo apt-get update或几乎任何apt命令都会导致核心转储。错误消息并没有提供更多信息:

Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]    
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]  
Hit:5 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu xenial InRelease    
Hit:6 http://dl.google.com/linux/chrome/deb stable Release                     
Hit:7 https://dl.yarnpkg.com/debian stable InRelease                           
Get:8 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:9 https://download.docker.com/linux/ubuntu xenial InRelease [65.8 kB]
Hit:10 https://deb.nodesource.com/node_8.x xenial InRelease                    
Fetched 389 kB in 0s (394 kB/s)
[1]    4498 abort (core dumped)  sudo apt-get update

我在这里和其他地方寻找答案,几乎每个提议的解决方案都涉及运行另一个 apt-get 命令,例如apt-get purge. 不幸的是,所有这些命令都会导致类似的核心转储错误。

另外值得注意的是,当它尝试报告错误时,apport 会崩溃。当它试图显示比可执行路径更多的信息时,窗口就会消失。当我第一次启动系统时,我会收到一串 apport 消息,所有这些消息都是针对 apt 或图形软件程序(如 Gnome Software),然后是 apport 本身。我认为这个问题可能比简单的更深。

我尝试使用 、 和 G-Parted 查找磁盘问题badblocks,fsck但一切正常。我似乎有足够的磁盘空间、内存和 CPU 来完成它的工作。我尝试进行更深入的分析,但无法使用 apt-get 安装实用程序使其具有挑战性。

我在 VMware Workstation 14 Pro VM 中运行 Ubuntu 16.04 LTS 64 位。不幸的是,我是个不定期快照的傻瓜,我不想创建一个新的虚拟机,因为我需要一些时间才能让我的工作空间恢复到我喜欢的状态。

apt apport
  • 1 个回答
  • 1265 Views
Martin Hope
Little me
Asked: 2018-03-02 12:05:44 +0800 CST

Crash Reporter 奇怪地建议 Appport UgradeStatus 是“没有升级日志存在(可能是全新安装)”

  • 0

在可能与 Firefox 和或在 Ubuntu 14.04LTS 安装上挂起有关的崩溃之后,Crash Reporter 表示这是由于 Appor 并且升级状态是“不存在升级日志(可能是全新安装)”。

好吧,我不确定这个旧安装是否应该合理地暗示这一点。可疑还是什么?

你说什么?

apport crash
  • 1 个回答
  • 102 Views
Martin Hope
thebunnyrules
Asked: 2018-02-21 21:04:19 +0800 CST

提交崩溃报告后,我在哪里可以获得 apport 追溯信息

  • 1

我在 gnome-shell 中遇到了很多 segv 崩溃,虽然 apport 窗口有很多信息,但它对用户不是很友好(窗口非常小,无法搜索,无法将副本保存到文本文件等) .

有没有办法可以直接从终端访问可用于申请的信息?gnome-shell 是否将回溯日志保存在某处?

我知道 /var/log 中有一个用于 apport 的日志文件,但该日志文件没有提供几乎相同级别的详细信息。

gnome command-line gnome-shell segmentation-fault apport
  • 1 个回答
  • 246 Views
Martin Hope
user635698
Asked: 2016-12-29 02:01:40 +0800 CST

处理时遇到错误:/var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb

  • 3

我有以下问题:

Errors were encountered while processing:
 /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我也不能安装/卸载/升级包。

试过:

sudo apt-get clean
sudo apt-get update && sudo apt-get upgrade

输出:

Hit:1 http://repo.yandex.ru/yandex-disk/deb stable InRelease
Hit:2 http://ru.archive.ubuntu.com/ubuntu xenial InRelease          
Get:3 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                     
Hit:4 http://ppa.launchpad.net/diesch/testing/ubuntu xenial InRelease                                      
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                 
Hit:6 http://ppa.launchpad.net/noobslab/apps/ubuntu xenial InRelease                                                
Hit:7 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease                                                                                           
Get:8 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                                                                   
Hit:9 http://ppa.launchpad.net/ricotz/docky/ubuntu xenial InRelease                                                                                        
Hit:10 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease                                                                         
Ign:11 http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04  InRelease                 
Hit:12 http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04  Release
Fetched 306 kB in 1s (288 kB/s)                    
Reading package lists... Done
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:
  linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic linux-image-4.4.0-51-generic linux-image-extra-4.4.0-51-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  gnome-software gnome-software-common liboxideqt-qmlplugin liboxideqtcore0 liboxideqtquick0 oxideqt-codecs-extra ubuntu-software
The following packages will be upgraded:
  apport
1 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
111 not fully installed or removed.
Need to get 120 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apport all 2.20.1-0ubuntu2.4 [120 kB]
Fetched 120 kB in 0s (606 kB/s) 
(Reading database ... 301001 files and directories currently installed.)
Preparing to unpack .../apport_2.20.1-0ubuntu2.4_all.deb ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

试过:

sudo dpkg --configure -a
sudo apt-get -f install

输出:

...
Errors were encountered while processing:
apport
apport-gtk


Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic linux-image-4.4.0-51-generic linux-image-extra-4.4.0-51-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  apport
The following packages will be upgraded:
  apport
1 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/120 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 301001 files and directories currently installed.)
Preparing to unpack .../apport_2.20.1-0ubuntu2.4_all.deb ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

试过:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb

输出:

(Reading database ... 301001 files and directories currently installed.)
Preparing to unpack .../apport_2.20.1-0ubuntu2.4_all.deb ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb (--install):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb

试过:

sudo apt-get purge apport

输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apport-symptoms python3-systemd
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  apport*
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 791 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: error processing package apport (--purge):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Errors were encountered while processing:
 apport
E: Sub-process /usr/bin/dpkg returned an error code (1)

试过:

sudo dpkg --remove --force-remove-reinstreq apport

输出:

dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
(Reading database ... 300994 files and directories currently installed.)
Removing apport (2.20.1-0ubuntu2.1) ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing package apport (--remove):
 subprocess installed pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apport

我会很高兴得到任何帮助。

apport
  • 3 个回答
  • 20376 Views
Martin Hope
cat
Asked: 2016-12-09 13:26:33 +0800 CST

为我自己的程序中的段错误禁用“检测到系统程序问题”

  • 2

我不介意收到有关SEGV 的系统程序的通知——我实际上想报告这些情况,所以这不是升级后定期弹出“检测到系统程序问题”的重复。

但是,我花了很多时间编写糟糕的 C 代码,并且经常从我自己的用户空间程序中得到段错误,我不想看到我自己的非系统应用程序“检测到系统程序问题”。

这是可能的,还是 Appport 只是监视init孩子SIGSEGV并弹出任何段错误?

apport
  • 1 个回答
  • 291 Views
Martin Hope
Kalle Richter
Asked: 2015-10-13 22:11:21 +0800 CST

如何激发批准对话框进行测试?

  • 0

我正在调查apport 问题 1505368并想重现应用程序崩溃后的情况,其中apport弹出对话框要求重新启动或关闭崩溃的应用程序(并且可以选择打开一个错误报告,这在我的案例中不起作用)。

实现这种情况的最简单方法是什么?有没有我可以安装的测试分段错误包?我是否必须自己制作一个简单的 C 程序(例如使用int a = *((int*)1))?

apport
  • 1 个回答
  • 152 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve