Ho provato il primo metodo, il risultato è:
Codice: Seleziona tutto
sed: impossibile leggere /etc/apt/sources-list.d: File o directory non esistente
poi ho inserito la seconda stringa e mi ha aperto un foglio di testo con:
Codice: Seleziona tutto
# deb cdrom:[Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412)]/ zesty main restricted
deb-src http://archive.ubuntu.com/ubuntu artful main restricted multiverse #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://it.archive.ubuntu.com/ubuntu/ artful main restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ artful main universe restricted #Added by software-properties
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://it.archive.ubuntu.com/ubuntu/ artful universe
deb-src http://it.archive.ubuntu.com/ubuntu/ zesty universe
deb-src http://it.archive.ubuntu.com/ubuntu/ zesty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb-src http://it.archive.ubuntu.com/ubuntu/ zesty multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ zesty-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu artful partner
deb-src http://archive.canonical.com/ubuntu artful partner
deb http://it.archive.ubuntu.com/ubuntu/ artful-security main restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ artful-security main universe restricted multiverse #Added by software-properties
deb http://it.archive.ubuntu.com/ubuntu/ artful-security universe
deb-src http://security.ubuntu.com/ubuntu zesty-security universe
deb-src http://security.ubuntu.com/ubuntu zesty-security multiverse
deb http://it.archive.ubuntu.com/ubuntu/ artful-updates restricted main universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ artful-updates restricted main universe multiverse #Added by software-properties
ora perdona la mia ignoranza ma non so cosa voglia dire "se usi gedit il mio consiglio è di commentare mettendo un # ad inizio riga quelle che cominciano con deb-src che non ti servono" ma immagino di dover mettere un # davanti alle 2 righe che hanno zesty nel nome e poi salvare?
EDIT: ho notato solo ora che sul terminale dopo aver digitato la seconda stringa che mi hai dato è apparso:
Codice: Seleziona tutto
sudo gedit /etc/apt/sources.list
** (gedit:24103): WARNING **: Set document metadata failed: Impostazione dell'attributo metadata::gedit-spell-language non supportata
** (gedit:24103): WARNING **: Set document metadata failed: Impostazione dell'attributo metadata::gedit-encoding non supportata
** (gedit:24103): WARNING **: Set document metadata failed: Impostazione dell'attributo metadata::gedit-position non supportata