Pagina 1 di 1

problema con apt-get update

Inviato: martedì 25 settembre 2012, 19:55
da Mattia94
Ciao a tutti ho ho un problema con apt-get update, perchè dopo che l'ho digitato e dopo che ha analizzato il tutto mi viene fuori questo :

W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: È consigliato eseguire "apt-get update" per correggere questi problemi


come faccio a risolverlo?

Re: problema con apt-get update

Inviato: martedì 25 settembre 2012, 20:10
da daigo
posta da terminale

Codice: Seleziona tutto

cat /etc/apt/sources.list 
e

Codice: Seleziona tutto

ls /etc/apt/sources.list.d/

Re: problema con apt-get update

Inviato: martedì 25 settembre 2012, 20:15
da Mattia94
ecco quello del cat

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.
deb http://it.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://it.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## 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/ precise universe
deb-src http://it.archive.ubuntu.com/ubuntu/ precise universe
deb http://it.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://it.archive.ubuntu.com/ubuntu/ precise-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 http://it.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://it.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ precise-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.
deb http://it.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## 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 precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://it.archive.ubuntu.com/ubuntu/ precise-proposed restricted main multiverse universe



e quello del ls

dropbox.list
dropbox.list.save
ffmulticonverter-stable-precise.list
ffmulticonverter-stable-precise.list.save
google-talkplugin.list
google-talkplugin.list.save
markjtully-ppa-precise.list
markjtully-ppa-precise.list.save
precise-partner.list
precise-partner.list.save
scopes-packagers-ppa-precise.list
scopes-packagers-ppa-precise.list.save
ubuntu-defaults.list
ubuntu-defaults.list.save

Re: problema con apt-get update

Inviato: martedì 25 settembre 2012, 20:20
da daigo
hai il repo partner anche in sources.list.d,rimuovilo, dai

Codice: Seleziona tutto

sudo rm -r /etc/apt/sources.list.d/precise-partner.list

Codice: Seleziona tutto

sudo rm -r /etc/apt/sources.list.d/precise-partner.list.save
e poi dai

Codice: Seleziona tutto

sudo apt-get update
e vedi se hai ancora errori

Re: problema con apt-get update

Inviato: martedì 25 settembre 2012, 20:22
da Mattia94
ok grazie tutto a posto. In poche parole sai spiegarmi cosa è successo? Se vuoi

Re: problema con apt-get update

Inviato: martedì 25 settembre 2012, 20:30
da giulux
in attesa dei chiarimenti di daigo modifica il primo post mettendo [Risolto] davanti al titolo
ciao

Re: problema con apt-get update

Inviato: martedì 25 settembre 2012, 20:31
da daigo
sinceramente non saprei come è successo,comunque l'errore diceva che avevi un repo duplicato,il repository partner, che infatti vedi in sources.list

Codice: Seleziona tutto

deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
e in sources.list .d

Codice: Seleziona tutto

precise-partner.list
precise-partner.list.save
rimosso questo è tornato tutto in ordine,ciao :ciao:

Re: problema con apt-get update

Inviato: martedì 25 settembre 2012, 20:41
da Mattia94
Ok capito grazie mille!!