Dados os comandos:
juliana@juliana-Inspiron-5452:~$ ls /etc/apt/apt.conf.d/
00aptitude 10periodic 50unattended-upgrades
00trustcdrom 15update-stamp 50unattended-upgrades.ucf-dist
01autoremove 20archive 70debconf
01autoremove-kernels 20dbus 99update-notifier
01-vendor-ubuntu 50appstream
juliana@juliana-Inspiron-5452:~$ ^C
juliana@juliana-Inspiron-5452:~$
juliana@juliana-Inspiron-5452:~$ cat /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run
// dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
//Unattended-Upgrade::AutoFixInterruptedDpkg "false";
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
//Unattended-Upgrade::MinimalSteps "true";
// Install all unattended-upgrades when the machine is shuting down
// instead of doing it in the background while the machine is running
// This will (obviously) make shutdown slower
//Unattended-Upgrade::InstallOnShutdown "true";
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "user@example.com"
//Unattended-Upgrade::Mail "root";
// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
//Unattended-Upgrade::MailOnlyOnError "true";
// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
//Unattended-Upgrade::Remove-Unused-Dependencies "false";
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
// Default: "now"
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";
juliana@juliana-Inspiron-5452:~$ ^C
juliana@juliana-Inspiron-5452:~$
juliana@juliana-Inspiron-5452:~$ sudo mv /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist /home/juliana/
[sudo] senha para juliana:
juliana@juliana-Inspiron-5452:~$
juliana@juliana-Inspiron-5452:~$ ls /etc/apt/
apt.conf.d sources.list.d trustdb.gpg trusted.gpg.d
preferences.d sources.list.distUpgrade trusted.gpg
sources.list sources.list.save trusted.gpg~
juliana@juliana-Inspiron-5452:~$ find /etc/apt/sources.list.d -type f -name "*.list" -print0 | \
> while read -d $'\0' file; do awk -F/ '/deb / && /ppa\.launchpad\.net/ {print "sudo ppa-purge ppa:"$4"/"$5}' "$file"; done
juliana@juliana-Inspiron-5452:~$ sudo apt-get update
Obter:1
http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Atingido:2
http://br.archive.ubuntu.com/ubuntu xenial InRelease
Ign:3
http://archive.canonical.com/ubuntu trusty InRelease
Obter:4
http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Atingido:5
http://archive.canonical.com/ubuntu xenial InRelease
Atingido:6
http://archive.canonical.com/ubuntu trusty Release
Obter:8
http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Obter:9
http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [54,1 kB]
Obter:10
http://br.archive.ubuntu.com/ubuntu xenial-updates/main Sources [237 kB]
Obter:11
http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [39,0 kB]
Obter:12
http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [32,1 kB]
Obter:13
http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [37,0 kB]
Obter:14
http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [496 kB]
Obter:15
http://br.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [486 kB]
Obter:16
http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [288 kB]
Obter:17
http://br.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [190 kB]
Obter:18
http://br.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [440 kB]
Obter:19
http://br.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [430 kB]
Obter:20
http://br.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [160 kB]
Obter:21
http://br.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [188 kB]
Obter:22
http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2.520 B]
Obter:23
http://br.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3.324 B]
Baixados 3.391 kB em 4s (728 kB/s)
Lendo listas de pacotes... Pronto
N: A ignorar o ficheiro 'mono-xamarin.list-bak' no directório '/etc/apt/sources.list.d/' porque tem uma extensão inválida no nome do ficheiro
juliana@juliana-Inspiron-5452:~$ sudo apt-get update
Atingido:1
http://br.archive.ubuntu.com/ubuntu xenial InRelease
Ign:2
http://archive.canonical.com/ubuntu trusty InRelease
Atingido:3
http://security.ubuntu.com/ubuntu xenial-security InRelease
Atingido:4
http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease
Atingido:5
http://archive.canonical.com/ubuntu xenial InRelease
Atingido:6
http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease
Atingido:7
http://archive.canonical.com/ubuntu trusty Release
Lendo listas de pacotes... Pronto
N: A ignorar o ficheiro 'mono-xamarin.list-bak' no directório '/etc/apt/sources.list.d/' porque tem uma extensão inválida no nome do ficheiro
juliana@juliana-Inspiron-5452:~$ ^C
juliana@juliana-Inspiron-5452:~$
juliana@juliana-Inspiron-5452:~$ sudo mv /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist /home/juliana/
mv: impossível obter estado de '/etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist': Arquivo ou diretório não encontrado
juliana@juliana-Inspiron-5452:~$ ls /etc/apt/
apt.conf.d sources.list.d trustdb.gpg trusted.gpg.d
preferences.d sources.list.distUpgrade trusted.gpg
sources.list sources.list.save trusted.gpg~
juliana@juliana-Inspiron-5452:~$ ls /etc/apt/sources.list.d/
mono-xamarin.list-bak xenial-partner.list
juliana@juliana-Inspiron-5452:~$ find /etc/apt/sources.list.d -type f -name "*.list" -print0 | \
> while read -d $'\0' file; do awk -F/ '/deb / && /ppa\.launchpad\.net/ {print "sudo ppa-purge ppa:"$4"/"$5}' "$file"; done
juliana@juliana-Inspiron-5452:~$ sudo apt update
Obter:1
http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:2
http://archive.canonical.com/ubuntu trusty InRelease
Atingido:3
http://archive.canonical.com/ubuntu xenial InRelease
Atingido:4
http://archive.canonical.com/ubuntu trusty Release
Atingido:6
http://br.archive.ubuntu.com/ubuntu xenial InRelease
Atingido:7
http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease
Atingido:8
http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease
Baixados 102 kB em 3s (33,9 kB/s)
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: A ignorar o ficheiro 'mono-xamarin.list-bak' no directório '/etc/apt/sources.list.d/' porque tem uma extensão inválida no nome do ficheiro
juliana@juliana-Inspiron-5452:~$
o Xamarin aparece nas atualizações do sistema, em configurações, será que pode remover lá?