[SOLVED]c++ na ubuntu 13.04 - nie ma dostępnej wersji build-essential

Bash, C, C++, Java, PHP, Ruby, GTK, Qt i wiele innych - wszystko tutaj.
Bartosz1166
Piegowaty Guziec
Piegowaty Guziec
Posty: 17
Rejestracja: 30 paź 2011, 11:50
Płeć: Mężczyzna
Wersja Ubuntu: 13.04
Architektura: x86_64
Kontakt:

[SOLVED]c++ na ubuntu 13.04 - nie ma dostępnej wersji build-essential

Post autor: Bartosz1166 »

Witam. Ostatnio na windowsie napisałem fajny, prosty program do statystyk rowerowych i chciałbym go skompilować na ubuntu. Przeczytałem FAQ, ale przy próbie instalacji pojawia się komunikat:

Kod: Zaznacz cały

Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji... Gotowe
Pakiet build-essential nie ma dostępnej wersji ale odnosi się do  niego inny pakiet.
Zazwyczaj oznacza to, że pakietu brakuje, został zastąpiony przez inny
pakiet lub nie jest dostępny przy pomocy obecnie ustawionych źródeł.

E: Pakiet build-essential nie ma kandydata do instalacji
Proszę o pomoc

//bear7: Wyniki poleceń, polecenia, zawartość plików konfiguracyjnych i systemowych umieszczaj pomiędzy znacznikami CODE.
Awatar użytkownika
enedil
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1352
Rejestracja: 08 wrz 2012, 16:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: i3
Architektura: x86_64
Kontakt:

Re: c++ na ubuntu 13.04

Post autor: enedil »

Wklej wyniki na forum poniższych poleceń:

Kod: Zaznacz cały

cat /etc/apt/sources.list

Kod: Zaznacz cały

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

Kod: Zaznacz cały

cat /etc/apt/sources.list.d/*

Kod: Zaznacz cały

sudo apt-get update
Dobrze jest, psiakrew, a kto powie, że nie, to go w mordę!

~moderatorzy
Bartosz1166
Piegowaty Guziec
Piegowaty Guziec
Posty: 17
Rejestracja: 30 paź 2011, 11:50
Płeć: Mężczyzna
Wersja Ubuntu: 13.04
Architektura: x86_64
Kontakt:

Re: c++ na ubuntu 13.04

Post autor: Bartosz1166 »

Kod: Zaznacz cały

cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## 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.

## 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.

## 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 raring partner
# deb-src http://archive.canonical.com/ubuntu raring 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 raring main
deb-src http://archive.ubuntu.com/ubuntu raring main restricted universe #Added by software-properties
deb http://archive.ubuntu.com/ubuntu raring multiverse universe
# deb-src http://extras.ubuntu.com/ubuntu raring main

Kod: Zaznacz cały

ls -al /etc/apt/sources.list.d
razem 16
drwxr-xr-x 2 root root 4096 sie  2 19:03 .
drwxr-xr-x 6 root root 4096 sie  2 19:03 ..
-rw-r--r-- 1 root root  156 sie  2 19:03 private-ppa.launchpad.net_commercial-ppa-uploaders_steam_ubuntu.list
-rw-r--r-- 1 root root  174 sie  2 19:03 ubuntu-unity-experimental-certified-raring.list

Kod: Zaznacz cały

cat /etc/apt/sources.list.d/*
deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/steam/ubuntu raring main #Added by software-center; credentials stored in /etc/apt/auth.conf
deb http://ppa.launchpad.net/ubuntu-unity/experimental-certified/ubuntu raring main
# deb-src http://ppa.launchpad.net/ubuntu-unity/experimental-certified/ubuntu raring main

Kod: Zaznacz cały

sudo apt-get update
Stary http://archive.ubuntu.com raring Release.gpg                             
Stary http://ppa.launchpad.net raring Release.gpg         
Stary http://archive.ubuntu.com raring Release             
Stary http://ppa.launchpad.net raring Release              
Stary http://archive.ubuntu.com raring/main Sources        
Stary http://ppa.launchpad.net raring/main amd64 Packages  
Stary http://archive.ubuntu.com raring/restricted Sources  
Stary http://ppa.launchpad.net raring/main i386 Packages   
Stary http://archive.ubuntu.com raring/universe Sources    
Ign.  https://private-ppa.launchpad.net raring Release.gpg 
Stary http://archive.ubuntu.com raring/multiverse amd64 Packages
Stary http://archive.ubuntu.com raring/universe amd64 Packages
Stary http://archive.ubuntu.com raring/multiverse i386 Packages
Stary http://archive.ubuntu.com raring/universe i386 Packages
Stary http://archive.ubuntu.com raring/multiverse Translation-pl
Stary https://private-ppa.launchpad.net raring Release     
Stary http://archive.ubuntu.com raring/multiverse Translation-en
Ign.  https://private-ppa.launchpad.net raring/main amd64 Packages/DiffIndex
Stary http://archive.ubuntu.com raring/universe Translation-pl
Stary http://archive.ubuntu.com raring/universe Translation-en
Ign.  https://private-ppa.launchpad.net raring/main i386 Packages/DiffIndex
Ign.  http://ppa.launchpad.net raring/main Translation-pl_PL
Ign.  http://ppa.launchpad.net raring/main Translation-pl  
Ign.  http://archive.ubuntu.com raring/multiverse Translation-pl_PL
Ign.  http://ppa.launchpad.net raring/main Translation-en
Ign.  http://archive.ubuntu.com raring/universe Translation-pl_PL
Stary https://private-ppa.launchpad.net raring/main amd64 Packages
Stary https://private-ppa.launchpad.net raring/main i386 Packages
Ign.  https://private-ppa.launchpad.net raring/main Translation-pl_PL
Ign.  https://private-ppa.launchpad.net raring/main Translation-pl
Ign.  https://private-ppa.launchpad.net raring/main Translation-en
Czytanie list pakietów... Gotowe
//bear7: Nie tylko polecenia, ale również wyniki poleceń umieszczaj pomiędzy znacznikami CODE.
Awatar użytkownika
enedil
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1352
Rejestracja: 08 wrz 2012, 16:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: i3
Architektura: x86_64
Kontakt:

Re: c++ na ubuntu 13.04

Post autor: enedil »

Edytuj plik /etc/apt/sources.list:

Kod: Zaznacz cały

sudo gedit /etc/apt/sources.list
Usuń całą zawartość i wklej

Kod: Zaznacz cały

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://pl.archive.ubuntu.com/ubuntu/ raring main restricted multiverse universe partner
#deb-src http://pl.archive.ubuntu.com/ubuntu/ raring main restricted multiverse universe partner
## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ raring-updates main restricted
#deb-src http://pl.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb http://security.ubuntu.com/ubuntu raring-security main restricted
#deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
#deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
#deb-src http://security.ubuntu.com/ubuntu raring-security multiverse
# Repozytorium Google
deb http://dl.google.com/linux/deb/ stable non-free
Jeżeli chcesz mieć dostęp do źródeł programów, to usuń znak # przed każdym deb-src. Po tym zapisz plik, a następnie uaktualnij listę programów:

Kod: Zaznacz cały

sudo apt-get update
Dobrze jest, psiakrew, a kto powie, że nie, to go w mordę!

~moderatorzy
Bartosz1166
Piegowaty Guziec
Piegowaty Guziec
Posty: 17
Rejestracja: 30 paź 2011, 11:50
Płeć: Mężczyzna
Wersja Ubuntu: 13.04
Architektura: x86_64
Kontakt:

Re: c++ na ubuntu 13.04

Post autor: Bartosz1166 »

Niestety nadal nie działa... :(
bear7
Przyjaciel
Przyjaciel
Posty: 6686
Rejestracja: 20 sty 2009, 23:12
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Inne
Architektura: x86_64
Lokalizacja: pwd

Re: c++ na ubuntu 13.04

Post autor: bear7 »

Pokaż raz jeszcze wyniki poniższych poleceń:

Kod: Zaznacz cały

sudo apt-get update

Kod: Zaznacz cały

cat /etc/apt/sources.list
Dorzuć również wyniki tych poleceń:

Kod: Zaznacz cały

apt-cache policy build-essential

Kod: Zaznacz cały

dpkg -l | grep 'build-' | awk '{print $2,$3}'
O pomoc pytaj a forum, a nie przez PW.
Bartosz1166
Piegowaty Guziec
Piegowaty Guziec
Posty: 17
Rejestracja: 30 paź 2011, 11:50
Płeć: Mężczyzna
Wersja Ubuntu: 13.04
Architektura: x86_64
Kontakt:

Re: c++ na ubuntu 13.04

Post autor: Bartosz1166 »

Kod: Zaznacz cały

Stary http://pl.archive.ubuntu.com raring Release.gpg
Pobieranie:1 http://dl.google.com stable Release.gpg [198 B]                   
Stary http://ppa.launchpad.net raring Release.gpg                              
Pobieranie:2 http://security.ubuntu.com raring-security Release.gpg [933 B]    
Stary http://pl.archive.ubuntu.com raring-updates Release.gpg                  
Stary http://dl.google.com stable Release                                      
Pobieranie:3 http://security.ubuntu.com raring-security Release [40,8 kB]      
Stary http://ppa.launchpad.net raring Release                                  
Stary http://pl.archive.ubuntu.com raring Release                              
Ign.  http://dl.google.com stable Release                                      
Stary http://pl.archive.ubuntu.com raring-updates Release                      
Stary http://ppa.launchpad.net raring/main amd64 Packages                      
Stary http://pl.archive.ubuntu.com raring/main Sources                         
Stary http://ppa.launchpad.net raring/main i386 Packages                       
Stary http://pl.archive.ubuntu.com raring/restricted Sources                   
Stary http://pl.archive.ubuntu.com raring/multiverse Sources                   
Pobieranie:4 http://security.ubuntu.com raring-security/main Sources [36,2 kB] 
Stary https://private-ppa.launchpad.net raring Release.gpg                     
Stary http://pl.archive.ubuntu.com raring/universe Sources                     
Stary http://pl.archive.ubuntu.com raring-updates/main Sources                 
Stary https://private-ppa.launchpad.net raring Release                         
Pobieranie:5 http://security.ubuntu.com raring-security/restricted Sources [14 B]
Stary http://pl.archive.ubuntu.com raring-updates/restricted Sources           
Pobieranie:6 http://security.ubuntu.com raring-security/universe Sources [8839 B]
Stary http://pl.archive.ubuntu.com raring-updates/main amd64 Packages          
Stary https://private-ppa.launchpad.net raring/main amd64 Packages             
Stary http://pl.archive.ubuntu.com raring-updates/restricted amd64 Packages    
Pobieranie:7 http://security.ubuntu.com raring-security/multiverse Sources [1825 B]
Stary https://private-ppa.launchpad.net raring/main i386 Packages              
Stary http://pl.archive.ubuntu.com raring-updates/main i386 Packages           
Pobieranie:8 http://security.ubuntu.com raring-security/main amd64 Packages [94,9 kB]
Stary http://pl.archive.ubuntu.com raring-updates/restricted i386 Packages     
Pobieranie:9 http://security.ubuntu.com raring-security/restricted amd64 Packages [14 B]
Stary http://pl.archive.ubuntu.com raring-updates/main Translation-en          
Pobieranie:10 http://security.ubuntu.com raring-security/universe amd64 Packages [32,2 kB]
Ign.  http://ppa.launchpad.net raring/main Translation-pl_PL                   
Pobieranie:11 http://security.ubuntu.com raring-security/multiverse amd64 Packages [3426 B]
Pobieranie:12 http://security.ubuntu.com raring-security/main i386 Packages [94,3 kB]
Ign.  http://ppa.launchpad.net raring/main Translation-pl                      
Stary http://pl.archive.ubuntu.com raring-updates/restricted Translation-en    
Ign.  http://ppa.launchpad.net raring/main Translation-en                      
Pobieranie:13 http://security.ubuntu.com raring-security/restricted i386 Packages [14 B]
Pobieranie:14 http://security.ubuntu.com raring-security/universe i386 Packages [32,9 kB]
Błąd  http://dl.google.com stable/non-free amd64 Packages                      
  404  Not Found [IP: 173.194.70.136 80]
Pobieranie:15 http://security.ubuntu.com raring-security/multiverse i386 Packages [3612 B]
Błąd  http://dl.google.com stable/non-free i386 Packages                       
  404  Not Found [IP: 173.194.70.136 80]
Ign.  http://dl.google.com stable/non-free Translation-pl_PL                   
Ign.  http://dl.google.com stable/non-free Translation-pl                      
Ign.  http://dl.google.com stable/non-free Translation-en                      
Stary http://security.ubuntu.com raring-security/main Translation-en           
Ign.  http://pl.archive.ubuntu.com raring-updates/main Translation-pl_PL       
Ign.  http://pl.archive.ubuntu.com raring-updates/main Translation-pl          
Stary http://security.ubuntu.com raring-security/multiverse Translation-en     
Ign.  http://pl.archive.ubuntu.com raring-updates/restricted Translation-pl_PL 
Ign.  http://pl.archive.ubuntu.com raring-updates/restricted Translation-pl    
Stary http://security.ubuntu.com raring-security/restricted Translation-en     
Stary http://security.ubuntu.com raring-security/universe Translation-en       
Ign.  http://security.ubuntu.com raring-security/main Translation-pl_PL        
Ign.  http://security.ubuntu.com raring-security/main Translation-pl           
Ign.  http://security.ubuntu.com raring-security/multiverse Translation-pl_PL  
Ign.  http://security.ubuntu.com raring-security/multiverse Translation-pl     
Ign.  http://security.ubuntu.com raring-security/restricted Translation-pl_PL  
Ign.  http://security.ubuntu.com raring-security/restricted Translation-pl     
Ign.  http://security.ubuntu.com raring-security/universe Translation-pl_PL    
Ign.  http://security.ubuntu.com raring-security/universe Translation-pl       
Ign.  https://private-ppa.launchpad.net raring/main Translation-pl_PL          
Ign.  https://private-ppa.launchpad.net raring/main Translation-pl             
Ign.  https://private-ppa.launchpad.net raring/main Translation-en             
Pobrano 350 kB w 20s (17,2 kB/s)                                               
W: Błąd GPG: http://dl.google.com stable Release: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY A040830F7FAC5991
W: Nie udało się pobrać http://pl.archive.ubuntu.com/ubuntu/dists/raring/Release  Nie udało się znaleźć oczekiwanego wpisu "partner/source/Sources" w pliku Release (nieprawidłowy wpis sources.list lub nieprawidłowy plik)

W: Nie udało się pobrać http://dl.google.com/linux/deb/dists/stable/non-free/binary-amd64/Packages  404  Not Found [IP: 173.194.70.136 80]

W: Nie udało się pobrać http://dl.google.com/linux/deb/dists/stable/non-free/binary-i386/Packages  404  Not Found [IP: 173.194.70.136 80]

E: Nie udało się pobrać niektórych plików indeksu, zostały one zignorowane lub użyto ich starszej wersji.

Kod: Zaznacz cały

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://pl.archive.ubuntu.com/ubuntu/ raring main restricted multiverse universe partner
deb-src http://pl.archive.ubuntu.com/ubuntu/ raring main restricted multiverse universe partner
## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-security multiverse
# Repozytorium Google
deb http://dl.google.com/linux/deb/ stable non-free

Kod: Zaznacz cały

build-essential:
  Zainstalowana: (brak)
  Kandydująca:   (brak)
  Tabela wersji:
A w ostatnim nic...
bear7
Przyjaciel
Przyjaciel
Posty: 6686
Rejestracja: 20 sty 2009, 23:12
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Inne
Architektura: x86_64
Lokalizacja: pwd

Re: c++ na ubuntu 13.04

Post autor: bear7 »

Kolega enedil umieścił w swoich repozytoriach wpis do repozytorium google...

Edytuj raz jeszcze plik z informacją o źródłach:

Kod: Zaznacz cały

sudo gedit /etc/apt/sources.list
I zamień na:

Kod: Zaznacz cały

deb http://pl.archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu raring partner
deb-src http://archive.canonical.com/ubuntu raring partner
deb http://extras.ubuntu.com/ubuntu raring main
deb-src http://extras.ubuntu.com/ubuntu raring main
Następnie, zapisz plik i zaktualizuj repozytoria:

Kod: Zaznacz cały

sudo apt-get update
Jak zwróci błąd, to wrzuć ponownie na forum wynik polecenia. Jak pójdzie bez błędów, to klepnij:

Kod: Zaznacz cały

apt-cache policy build-essential
Jak zwróci wynik, że ma kandydata, to wówczas instalacja powinna pójść ok.
O pomoc pytaj a forum, a nie przez PW.
Bartosz1166
Piegowaty Guziec
Piegowaty Guziec
Posty: 17
Rejestracja: 30 paź 2011, 11:50
Płeć: Mężczyzna
Wersja Ubuntu: 13.04
Architektura: x86_64
Kontakt:

Re: c++ na ubuntu 13.04

Post autor: Bartosz1166 »

Dzięki za pomoc :) Wszystko działa jak należy :)
ODPOWIEDZ

Wróć do „Programowanie”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 15 gości