meta data for this page
  •  

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:general:apt [2017/02/08 08:13] niziaklinux:general:apt [2021/09/26 07:47] (current) niziak
Line 36: Line 36:
  
 ====== Commandline ====== ====== Commandline ======
 +
 +===== Disable fsync =====
 +
 +This trick helps on BTRFS FS
 +<code bash>
 +apt-get install eatmydata
 +eatmydata apt-get update
 +</code>
 +
 +Or wrap some commands permanently with eatmydata
 +<code bash>
 +ln -s /usr/bin/eatmydata /usr/local/bin/aptitude
 +ln -s /usr/bin/eatmydata /usr/local/bin/apt-get
 +ln -s /usr/bin/eatmydata /usr/local/bin/apt-cache
 +</code>
 +
 ===== Playing with apt keys ===== ===== Playing with apt keys =====
  
Line 77: Line 93:
 apt-mark hold backupninja apt-mark hold backupninja
 </code> </code>
 +
 +===== Install with low prio questions =====
 +To change dpkg-configure question priorities:
 +<code bash>DEBIAN_PRIORITY=low apt-get install ...</code>
  
 ===== Install from backports ===== ===== Install from backports =====
Line 83: Line 103:
 <code>apt-get install -t jessie-backports pulseaudio</code> <code>apt-get install -t jessie-backports pulseaudio</code>
 <code>aptitude -t jessie-backports</code> <code>aptitude -t jessie-backports</code>
 +
 +<file | /etc/apt/preferences.d/backports>
 +Package: *
 +Pin: release a=jessie-backports
 +Pin-Priority: 500
 +
 +Package: *
 +Pin: release a=stretch-backports
 +Pin-Priority: 500
 +</file>
  
 ===== Hold package ===== ===== Hold package =====
Line 89: Line 119:
  
 ====== Errors ====== ====== Errors ======
 +
 +===== trying to overwrite  =====
 +<code>
 +dpkg: error processing archive /var/cache/apt/archives/gstreamer1.0-plugins-base_1.18.4-2_amd64.deb (--unpack):
 + trying to overwrite '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcompositor.so', which is also in package gstreamer1.0-plugins-bad:amd64 1:1.14.4-dmo7+deb10u1
 +dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
 +Errors were encountered while processing:
 + /var/cache/apt/archives/gstreamer1.0-plugins-base_1.18.4-2_amd64.deb
 +Config is in use.
 +</code>
 +
 +<code bash>
 +apt-get -f -o Dpkg::Options::="--force-overwrite" install
 +</code>
 +
 +
 +===== BADSIG ===== 
 +
 Error: Error:
 <code> <code>
Line 111: Line 159:
  
  
 +===== Download is performed unsandboxed =====
 +Warning:
 +<code>
 +W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/libnet-cidr-lite-perl_0.21-1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
 +</code>
 +<code bash>
 +
 +sudo chown -Rv _apt:root /var/cache/apt/archives/
 +sudo chmod -Rv 774 /var/cache/apt/archives/
 +
 +</code>