Site Tools


linux:ubuntu:troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ubuntu:troubleshooting [2017/06/01 16:38] lunetikklinux:ubuntu:troubleshooting [2025/01/26 22:50] (current) lunetikk
Line 10: Line 10:
 E: Sub-process /usr/bin/dpkg returned an error code (2) E: Sub-process /usr/bin/dpkg returned an error code (2)
 E: Failed to write temporary StateFile /var/lib/apt/extended_states.tmp E: Failed to write temporary StateFile /var/lib/apt/extended_states.tmp
-</code> 
-or 
-<code> 
-Reading package lists... Done 
-W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max 
-W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min 
-W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max 
-W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min 
-W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max 
-W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min 
-W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max 
-W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min 
-W: You may want to run apt-get update to correct these problems 
 </code> </code>
 or or
Line 48: Line 35:
 /dev/sda1                184M   39M  136M  23% /boot /dev/sda1                184M   39M  136M  23% /boot
 /dev/mapper/system-home  4.5G  373M  3.9G   9% /home /dev/mapper/system-home  4.5G  373M  3.9G   9% /home
-**/dev/mapper/system-var   4.5G  3.1G  1.3G  72% /var**+/dev/mapper/system-var   4.5G  3.1G  1.3G  72% /var
 /dev/mapper/system-usr   9.1G  1.5G  7.1G  18% /usr /dev/mapper/system-usr   9.1G  1.5G  7.1G  18% /usr
 </code> </code>
Line 65: Line 52:
 /dev/mapper/system-home 305216   9542 295674    4% /home /dev/mapper/system-home 305216   9542 295674    4% /home
 /dev/sda1                48768    299  48469    1% /boot /dev/sda1                48768    299  48469    1% /boot
-**/dev/mapper/system-var  305216 305216      0  100% /var**+/dev/mapper/system-var  305216 305216      0  100% /var
 /dev/mapper/system-usr  610800  80660 530140   14% /usr /dev/mapper/system-usr  610800  80660 530140   14% /usr
 </code> </code>
Line 78: Line 65:
 cd /var/bla cd /var/bla
 for i in * ; do rm $i ; done for i in * ; do rm $i ; done
 +</code>
 +
 +if too many
 +<code>
 +mkdir empty_dir
 +rsync -a --delete empty_dir/ yourdirectory/
 </code> </code>
  
Line 83: Line 76:
  
 In my case 296093 files in "/var/spool/icinga2/perfdata/" In my case 296093 files in "/var/spool/icinga2/perfdata/"
 +
 +===== USB devices are dead =====
 +
 +==== Errormessage ====
 +
 +dmesg shows some like this
 +<code>
 +[48339.446016] xhci_hcd 0000:04:00.3: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0011 address=0xfe0a1000 flags=0x0000]
 +[48374.915331] xhci_hcd 0000:04:00.3: xHCI host not responding to stop endpoint command
 +[48374.915341] xhci_hcd 0000:04:00.3: xHCI host controller not responding, assume dead
 +[48374.915367] xhci_hcd 0000:04:00.3: HC died; cleaning up
 +[48374.915404] usb 1-1: USB disconnect, device number 2
 +[48374.915407] usb 1-1.5: USB disconnect, device number 5
 +[48374.915940] usb 2-1: USB disconnect, device number 2
 +[48374.915945] usb 2-1.3: USB disconnect, device number 3
 +[48374.916232] usb 1-2: USB disconnect, device number 3
 +</code>
 +
 +==== Solution ====
 +
 +Reboot your system or restart xhci_hcd
 +<code>
 +#insert your device after echo -n
 +echo -n "0000:00:14.0" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
 +sleep 5
 +echo -n "0000:00:14.0" | tee /sys/bus/pci/drivers/xhci_hcd/bind
 +</code>
 +
 +==== Cause ====
 +
 +I wish I knew...
linux/ubuntu/troubleshooting.1496327916.txt.gz · Last modified: 2017/06/01 16:38 by lunetikk