error install g++

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
zerofreedom
Posts: 176
Joined: 05 Jun 2010, 09:58

error install g++

Postby zerofreedom » 09 Jun 2010, 11:24

hmm..
sekali2 bikin thread..
udah seach g++ tp gak nemu..
awal nya ane run "make"
muncul

Code: Select all

bash: g++: command not found

trus ane sudo apt-get install g++
trus udah selesai download
tapi masih error kayak yg pertama
sudo apt-get install g++ yg kedua kalinya..
muncul:

Code: Select all

g++ is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  g++: Depends: g++-4.4 (>= 4.4.1-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

so ane ikutin perintah nya sudo apt-get -f install
muncul erro lagi

Code: Select all

The following extra packages will be installed:
  g++-4.4 libstdc++6-4.4-dev
Suggested packages:
  g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg
  libstdc++6-4.4-doc
The following NEW packages will be installed:
  g++-4.4 libstdc++6-4.4-dev
0 upgraded, 2 newly installed, 0 to remove and 274 not upgraded.
4 not fully installed or removed.
Need to get 0B/6,191kB of archives.
After this operation, 20.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 121118 files and directories currently installed.)
Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.1-4ubuntu9_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libstdc++6-4.4-dev_4.4.1-4ubuntu9_i386.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Unpacking g++-4.4 (from .../g++-4.4_4.4.1-4ubuntu9_i386.deb) ...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error processing /var/cache/apt/archives/g++-4.4_4.4.1-4ubuntu9_i386.deb (--unpack):
 subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libstdc++6-4.4-dev_4.4.1-4ubuntu9_i386.deb
 /var/cache/apt/archives/g++-4.4_4.4.1-4ubuntu9_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


mohon dikoreksi ya salahnya dimana ?
n solusinya ya ?:D
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: error install g++

Postby blackshirt » 09 Jun 2010, 13:19

/var/cache/apt/archives/libstdc++6-4.4-dev_4.4.1-4ubuntu9_i386.deb
/var/cache/apt/archives/g++-4.4_4.4.1-4ubuntu9_i386.deb


kamu remove aja file yang dimaksud
User avatar
zerofreedom
Posts: 176
Joined: 05 Jun 2010, 09:58

Re: error install g++

Postby zerofreedom » 09 Jun 2010, 17:36

[quote=blackshirt]
/var/cache/apt/archives/libstdc++6-4.4-dev_4.4.1-4ubuntu9_i386.deb
/var/cache/apt/archives/g++-4.4_4.4.1-4ubuntu9_i386.deb


kamu remove aja file yang dimaksud


dihapus dulu ya gan... ?
gini bukan :

Code: Select all

rm /var/cache/apt/archives/libstdc++6-4.4-dev_4.4.1-4ubuntu9_i386.deb
 rm /var/cache/apt/archives/g++-4.4_4.4.1-4ubuntu9_i386.deb