To have your package installation unattended, without any prompt, just export the DEBIAN_FRONTEND variable as shown below, then install your package. This maybe useful if used in scripts. export DEBIAN_FRONTEND=noninteractive apt-get -q -y install …..
This will lookup recursively all files (type f) below /your/path and replace the string your_old_string by your_new_string. find /your/path/ -type f | xargs /usr/bin/perl -w -i -p -e "s/your_old_string/your_new_string/g" You might want to exclude certain file types or choose by name: find /your/path/ -type f -name "*.xml" | xargs /usr/bin/perl -w -i -p -e "s/your_old_string/your_new_string/g" find /your/path/ -type f -name "my*file*" | xargs /usr/bin/perl […]
Since one of the last upgrades in Debian you may have some error messages when updating. You might resolve them by executing: apt-get clean cd /var/lib/apt rm -rf lists.old mv lists lists.old mkdir -p lists/partial apt-get clean apt-get update -o Acquire::http::No-Cache=true
apt by default reads files in /etc/apt/apt.conf.d/, so you can create a file for each line if you like to or create a new file in there and put them all in: Acquire::Check-Valid-Until "false"; #problems with not up2date mirrors, release file expired? APT::Get::AllowUnauthenticated "true"; #allow installation of unauthenticated files GPG::Check false; #disable all GPG checks […]