Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.19 KB | None | 0 0
  1. $ df -hT
  2. Filesystem Type Size Used Avail Use% Mounted on
  3. /dev/sda2 ext4 92G 8,7G 79G 10% /
  4. udev devtmpfs 10M 0 10M 0% /dev
  5. tmpfs tmpfs 1,1G 9,3M 1,1G 1% /run
  6. tmpfs tmpfs 2,7G 368K 2,7G 1% /dev/shm
  7. tmpfs tmpfs 5,0M 4,0K 5,0M 1% /run/lock
  8. tmpfs tmpfs 2,7G 0 2,7G 0% /sys/fs/cgroup
  9. /dev/sda1 ext4 922M 33M 827M 4% /boot
  10. /dev/sda3 ext4 588G 21G 538G 4% /home
  11. tmpfs tmpfs 546M 8,0K 546M 1% /run/user/1000
  12.  
  13.  
  14. $ apt-get update
  15. Get:1 http://security.debian.org jessie/updates InRelease [63,1 kB]
  16. Ign http://mirrors.kernel.org jessie InRelease
  17. Hit http://security.debian.org jessie/updates/main amd64 Packages
  18. Hit http://mirrors.kernel.org jessie Release.gpg
  19. Hit http://security.debian.org jessie/updates/contrib amd64 Packages
  20. Hit http://security.debian.org jessie/updates/non-free amd64 Packages
  21. Hit http://security.debian.org jessie/updates/main i386 Packages
  22. Hit http://security.debian.org jessie/updates/contrib i386 Packages
  23. Hit http://mirrors.kernel.org jessie Release
  24. Hit http://security.debian.org jessie/updates/non-free i386 Packages
  25. Hit http://security.debian.org jessie/updates/contrib Translation-en
  26. Hit http://security.debian.org jessie/updates/main Translation-en
  27. Hit http://security.debian.org jessie/updates/non-free Translation-en
  28. Hit http://mirrors.kernel.org jessie/main amd64 Packages
  29. Hit https://dl.winehq.org jessie InRelease
  30. Hit http://mirrors.kernel.org jessie/contrib amd64 Packages
  31. Hit https://dl.winehq.org jessie/main amd64 Packages
  32. Hit https://dl.winehq.org jessie/main i386 Packages
  33. Hit http://mirrors.kernel.org jessie/non-free amd64 Packages
  34. Get:2 https://dl.winehq.org jessie/main Translation-en [258 B]
  35. Hit http://mirrors.kernel.org jessie/main i386 Packages
  36. Get:3 https://dl.winehq.org jessie/main Translation-en [258 B]
  37. Get:4 https://dl.winehq.org jessie/main Translation-en [258 B]
  38. Hit http://mirrors.kernel.org jessie/contrib i386 Packages
  39. Get:5 https://dl.winehq.org jessie/main Translation-en [258 B]
  40. Get:6 https://dl.winehq.org jessie/main Translation-en [258 B]
  41. Ign https://dl.winehq.org jessie/main Translation-en
  42. Hit http://mirrors.kernel.org jessie/non-free i386 Packages
  43. Hit http://mirrors.kernel.org jessie/contrib Translation-en
  44. Hit http://mirrors.kernel.org jessie/main Translation-en
  45. Hit http://mirrors.kernel.org jessie/non-free Translation-en
  46. Fetched 63,1 kB in 5s (12,1 kB/s)
  47. Reading package lists... Done
  48.  
  49.  
  50. $ ls -l /var/cache/apt
  51. total 75144
  52. drwxr-xr-x 3 root root 131072 Aug 13 23:41 archives
  53. -rw-r--r-- 1 root root 38528297 Aug 14 21:05 pkgcache.bin
  54. -rw-r--r-- 1 root root 38318200 Aug 14 21:05 srcpkgcache.bin
  55.  
  56.  
  57. $ ls -l /var/lib/apt/lists/
  58. total 96376
  59. -rw-r--r-- 1 root root 4702 Aug 8 09:57 dl.winehq.org_wine-builds_debian_dists_jessie_InRelease
  60. -rw-r--r-- 1 root root 160613 Aug 8 09:57 dl.winehq.org_wine-builds_debian_dists_jessie_main_binary-amd64_Packages
  61. -rw-r--r-- 1 root root 155024 Aug 8 09:57 dl.winehq.org_wine-builds_debian_dists_jessie_main_binary-i386_Packages
  62. -rw-r----- 1 root root 0 Aug 7 22:35 lock
  63. -rw-r--r-- 1 root root 196532 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_contrib_binary-amd64_Packages
  64. -rw-r--r-- 1 root root 193380 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_contrib_binary-i386_Packages
  65. -rw-r--r-- 1 root root 143707 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_contrib_i18n_Translation-en
  66. -rw-r--r-- 1 root root 33979969 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_main_binary-amd64_Packages
  67. -rw-r--r-- 1 root root 33951891 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_main_binary-i386_Packages
  68. -rw-r--r-- 1 root root 22370857 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_main_i18n_Translation-en
  69. -rw-r--r-- 1 root root 355339 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_non-free_binary-amd64_Packages
  70. -rw-r--r-- 1 root root 344305 Jul 22 12:11 mirrors.kernel.org_debian_dists_jessie_non-free_binary-i386_Packages
  71. -rw-r--r-- 1 root root 309533 Mai 6 13:16 mirrors.kernel.org_debian_dists_jessie_non-free_i18n_Translation-en
  72. -rw-r--r-- 1 root root 148400 Jul 22 12:45 mirrors.kernel.org_debian_dists_jessie_Release
  73. -rw-r--r-- 1 root root 2373 Jul 22 12:54 mirrors.kernel.org_debian_dists_jessie_Release.gpg
  74. drwxr-xr-x 2 root root 12288 Aug 14 21:05 partial
  75. -rw-r--r-- 1 root root 8264 Feb 23 02:04 security.debian.org_dists_jessie_updates_contrib_binary-amd64_Packages
  76. -rw-r--r-- 1 root root 8256 Feb 23 02:04 security.debian.org_dists_jessie_updates_contrib_binary-i386_Packages
  77. -rw-r--r-- 1 root root 4825 Feb 23 02:04 security.debian.org_dists_jessie_updates_contrib_i18n_Translation-en
  78. -rw-r--r-- 1 root root 63066 Aug 14 19:01 security.debian.org_dists_jessie_updates_InRelease
  79. -rw-r--r-- 1 root root 2387327 Aug 13 21:41 security.debian.org_dists_jessie_updates_main_binary-amd64_Packages
  80. -rw-r--r-- 1 root root 2386761 Aug 13 21:41 security.debian.org_dists_jessie_updates_main_binary-i386_Packages
  81. -rw-r--r-- 1 root root 1453403 Aug 13 21:41 security.debian.org_dists_jessie_updates_main_i18n_Translation-en
  82. -rw-r--r-- 1 root root 0 Feb 23 02:04 security.debian.org_dists_jessie_updates_non-free_binary-amd64_Packages
  83. -rw-r--r-- 1 root root 0 Feb 23 02:04 security.debian.org_dists_jessie_updates_non-free_binary-i386_Packages
  84. -rw-r--r-- 1 root root 0 Feb 23 02:04 security.debian.org_dists_jessie_updates_non-free_i18n_Translation-en
  85.  
  86. $ dmesg | grep apt
  87. [ 2.780059] psmouse serio1: elantech: Synaptics capabilities query result 0x08, 0x17, 0x0c.
  88. [ 8.426228] ACPI: AC Adapter [ADP1] (off-line)
  89. [ 10.059941] samsung_laptop: detected SABI interface: SwSmi@
  90. [ 10.059949] samsung_laptop: Backlight controlled by ACPI video driver
  91. [ 11.455538] Linux video capture interface: v2.00
  92.  
  93. $ cd /etc/apt
  94. root@christian-pc:/etc/apt# cat apt.conf apt.conf.d/* preferences preferences.d/*
  95. cat: apt.conf: No such file or directory
  96. Acquire::cdrom {
  97. mount "/media/cdrom";
  98. };
  99. Dir::Media::MountPath "/media/cdrom";
  100. APT::Authentication::TrustCDROM "true";
  101. APT
  102. {
  103. NeverAutoRemove
  104. {
  105. "^firmware-linux.*";
  106. "^linux-firmware$";
  107. };
  108.  
  109. VersionedKernelPackages
  110. {
  111. # linux kernels
  112. "linux-image";
  113. "linux-headers";
  114. "linux-image-extra";
  115. "linux-signed-image";
  116. # kfreebsd kernels
  117. "kfreebsd-image";
  118. "kfreebsd-headers";
  119. # hurd kernels
  120. "gnumach-image";
  121. # (out-of-tree) modules
  122. ".*-modules";
  123. ".*-kernel";
  124. "linux-backports-modules-.*";
  125. # tools
  126. "linux-tools";
  127. };
  128.  
  129. Never-MarkAuto-Sections
  130. {
  131. "metapackages";
  132. "restricted/metapackages";
  133. "universe/metapackages";
  134. "multiverse/metapackages";
  135. "oldlibs";
  136. "restricted/oldlibs";
  137. "universe/oldlibs";
  138. "multiverse/oldlibs";
  139. };
  140. };
  141. // DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal
  142. APT::NeverAutoRemove
  143. {
  144. "^linux-image-3\.16\.0-4-amd64$";
  145. "^linux-headers-3\.16\.0-4-amd64$";
  146. "^linux-image-extra-3\.16\.0-4-amd64$";
  147. "^linux-signed-image-3\.16\.0-4-amd64$";
  148. "^kfreebsd-image-3\.16\.0-4-amd64$";
  149. "^kfreebsd-headers-3\.16\.0-4-amd64$";
  150. "^gnumach-image-3\.16\.0-4-amd64$";
  151. "^.*-modules-3\.16\.0-4-amd64$";
  152. "^.*-kernel-3\.16\.0-4-amd64$";
  153. "^linux-backports-modules-.*-3\.16\.0-4-amd64$";
  154. "^linux-tools-3\.16\.0-4-amd64$";
  155. };
  156. DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -ne 10"; };
  157. DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
  158. // THIS FILE IS USED TO INFORM PACKAGEKIT
  159. // THAT THE UPDATE-INFO MIGHT HAVE CHANGED
  160.  
  161. // Whenever dpkg is called we might have different updates
  162. // i.e. if an user removes a package that had an update
  163. DPkg::Post-Invoke {
  164. "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
  165. };
  166.  
  167. // When Apt's cache is updated (i.e. apt-cache update)
  168. APT::Update::Post-Invoke-Success {
  169. "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
  170. };
  171. // Unattended-Upgrade::Origins-Pattern controls which packages are
  172. // upgraded.
  173. //
  174. // Lines below have the format format is "keyword=value,...". A
  175. // package will be upgraded only if the values in its metadata match
  176. // all the supplied keywords in a line. (In other words, omitted
  177. // keywords are wild cards.) The keywords originate from the Release
  178. // file, but several aliases are accepted. The accepted keywords are:
  179. // a,archive,suite (eg, "stable")
  180. // c,component (eg, "main", "crontrib", "non-free")
  181. // l,label (eg, "Debian", "Debian-Security")
  182. // o,origin (eg, "Debian", "Unofficial Multimedia Packages")
  183. // n,codename (eg, "jessie", "jessie-updates")
  184. // site (eg, "http.debian.net")
  185. // The available values on the system are printed by the command
  186. // "apt-cache policy", and can be debugged by running
  187. // "unattended-upgrades -d" and looking at the log file.
  188. //
  189. // Within lines unattended-upgrades allows 2 macros whose values are
  190. // derived from /etc/debian_version:
  191. // ${distro_id} Installed origin.
  192. // ${distro_codename} Installed codename (eg, "jessie")
  193. Unattended-Upgrade::Origins-Pattern {
  194. // Codename based matching:
  195. // This will follow the migration of a release through different
  196. // archives (e.g. from testing to stable and later oldstable).
  197. // "o=Debian,n=jessie";
  198. // "o=Debian,n=jessie-updates";
  199. // "o=Debian,n=jessie-proposed-updates";
  200. // "o=Debian,n=jessie,l=Debian-Security";
  201.  
  202. // Archive or Suite based matching:
  203. // Note that this will silently match a different release after
  204. // migration to the specified archive (e.g. testing becomes the
  205. // new stable).
  206. // "o=Debian,a=stable";
  207. // "o=Debian,a=stable-updates";
  208. // "o=Debian,a=proposed-updates";
  209. "origin=Debian,codename=${distro_codename},label=Debian-Security";
  210. };
  211.  
  212. // List of packages to not update (regexp are supported)
  213. Unattended-Upgrade::Package-Blacklist {
  214. // "vim";
  215. // "libc6";
  216. // "libc6-dev";
  217. // "libc6-i686";
  218. };
  219.  
  220. // This option allows you to control if on a unclean dpkg exit
  221. // unattended-upgrades will automatically run
  222. // dpkg --force-confold --configure -a
  223. // The default is true, to ensure updates keep getting installed
  224. //Unattended-Upgrade::AutoFixInterruptedDpkg "false";
  225.  
  226. // Split the upgrade into the smallest possible chunks so that
  227. // they can be interrupted with SIGUSR1. This makes the upgrade
  228. // a bit slower but it has the benefit that shutdown while a upgrade
  229. // is running is possible (with a small delay)
  230. //Unattended-Upgrade::MinimalSteps "true";
  231.  
  232. // Install all unattended-upgrades when the machine is shuting down
  233. // instead of doing it in the background while the machine is running
  234. // This will (obviously) make shutdown slower
  235. //Unattended-Upgrade::InstallOnShutdown "true";
  236.  
  237. // Send email to this address for problems or packages upgrades
  238. // If empty or unset then no email is sent, make sure that you
  239. // have a working mail setup on your system. A package that provides
  240. // 'mailx' must be installed. E.g. "user@example.com"
  241. //Unattended-Upgrade::Mail "root";
  242.  
  243. // Set this value to "true" to get emails only on errors. Default
  244. // is to always send a mail if Unattended-Upgrade::Mail is set
  245. //Unattended-Upgrade::MailOnlyOnError "true";
  246.  
  247. // Do automatic removal of new unused dependencies after the upgrade
  248. // (equivalent to apt-get autoremove)
  249. //Unattended-Upgrade::Remove-Unused-Dependencies "false";
  250.  
  251. // Automatically reboot *WITHOUT CONFIRMATION* if
  252. // the file /var/run/reboot-required is found after the upgrade
  253. //Unattended-Upgrade::Automatic-Reboot "false";
  254.  
  255. // If automatic reboot is enabled and needed, reboot at the specific
  256. // time instead of immediately
  257. // Default: "now"
  258. //Unattended-Upgrade::Automatic-Reboot-Time "02:00";
  259.  
  260. // Use apt bandwidth limit feature, this example limits the download
  261. // speed to 70kb/sec
  262. //Acquire::http::Dl-Limit "70";
  263. // Pre-configure all packages with debconf before they are installed.
  264. // If you don't like it, comment it out.
  265. DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
  266. Package: *
  267. Pin: release a=stable
  268. Pin-Priority: 900
  269.  
  270. Package: *
  271. Pin: release o=Debian
  272. Pin-Priority: -10
  273. cat: preferences.d/*: No such file or directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement