- I can't install g++ in software center.
- I can install other programs. For example, after I found g++ can't be installed, I installed chrome for test purpose through software center, and it worked!
g++ can be installed in the terminal via apt-get install. Only the software center way didn't work.
Here is the messages display in the terminal when I installed g++ in software center :
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? xch@xch-PC:~$ sudo software-center [sudo] password for xch: 2013-03-20 13:11:19,232 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None' 2013-03-20 13:11:19,272 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True 2013-03-20 13:11:20,412 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file 2013-03-20 13:11:20,893 - softwarecenter.ui.gtk3.app - INFO - show_available_packages: search_text is '', app is None. 2013-03-20 13:11:20,901 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open() 2013-03-20 13:12:09,553 - softwarecenter.backend - ERROR - error in_on_trans_finished 'Error: Requires installation of untrusted packages The action would require the installation of packages from not authenticated sources. g++ g++-4.6 libstdc++6-4.6-dev' 2013-03-20 13:12:11,356 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open() 2013-03-20 13:12:15,565 - softwarecenter.db.update - INFO - skipping region restricted app: 'Bulleti d'esquerra de Calonge i Sant Antoni ' (not whitelisted) 2013-03-20 13:12:16,527 - softwarecenter.db.update - INFO - skipping region restricted app: 'Comentarios Web' (not whitelisted) 2013-03-20 13:12:18,910 - softwarecenter.ui.gtk3.app - INFO - software-center-agent finished with status 0 2013-03-20 13:12:18,911 - softwarecenter.db.database - INFO - reopen() database 2013-03-20 13:12:18,911 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True ^Cg_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting..
Who can tell me why this happens? How can I fix it?
PS: I have had gcc and gdb installed in my 12.04LTS before. My goal is to install Qt Creator via software center, which doesn't work either.
I finally installed qt creator via synaptic. But I'm still curious about why it can't be done in software center. Does software center use some specific website? I'm in China and some websites can't be accessed because of the so called GFW.