I guess the solution is to manually apt-get install the packages I actually want to have (i.e. Pidgin, LibreOffice, System Monitor, etc.), but there are also a bunch of packages of which I have no idea what they do. Many of them are probably dependencies of the aforementioned, but I don't know. I'd have to check them all manually. Some look unrelated, like t1utils (apt-cache rdepends doesn't show anything I recognize).
apt-get download gedit
Download File
https://genvafeshi.blogspot.com/?ed=2x1sJc
Another "solution" is to apt-get install the whole list of packages that it would otherwise autoremove, but that's an ugly hack because it would no longer know which packages were installed because of dependencies and which were installed because I want them to be installed.
In my case, a remote 12.04 server only had a bare minimum of gedit dependencies installed (apt-get install gedit --no-install-recommends). Installing dbus-x11 package solved the problem. dbus-x11 actually contain a missing dbus-launch.
Those who use Ubuntu in internet-restricted area such as college or office, probably will need proxy configuration for their apt-get command. Especially in the college, when every student given username and password for campus proxy to connect to the internet. Actually we just need to configure proxy or with/without authentication in apt.conf file. Here we go.
Assumptions
Let assume we have these credential information:
Proxy server: proxy.server.eduPort: 443Username: myusername mycollege.eduPassword: mypassword
How To Configure
Open Terminal.Perform command: sudo gedit /etc/apt/apt.confType the configuration text below.Save Gedit and exit. Test command sudo apt-get update when you are in the proxified area.
How To Revert Configuration
Open Terminal. Perform command: sudo gedit /etc/apt/apt.confType a "#" sign without quotes in every beginning of line exactly before Acquire. Save Gedit and exit.Test command sudo apt-get update when you are not in proxyfied area.
Configuration Text
Given above assumptions, so our configuration will be like these.
Acquire::http::proxy " mycollege.edu:mypassword
proxy.college.edu:443"Acquire::https::proxy "myusername mycollege.edu:mypassword
proxy.college.edu:443";
apt-get install is followed by one or more packages desired for installation or upgrading. Each package is a package name, not a fully qualified filename. All packages required by the package(s) specified for installation will also be retrieved and installed. The /etc/apt/sources.list file is used to locate the desired packages. If a hyphen is appended to the package name (with no intervening space), the identified package will be removed if it is installed. Similarly a plus sign can be used to designate a package to install. These latter features may be used to override decisions made by apt-get's conflict resolution system.
You can use the command "apt-cache showpkg chaste-source" to see what versions of the package are available for installation, then do "apt-get install chaste-source=" to install the desired version. I suggest the latest packaging of the desired release, so e.g. do "apt-get install chaste-source=2.1.10906" for release 2.1.
If this really does offend you (it can be very annoying if you are doing development and/or memory testing), then precise (12.04 LTS) also makes boost 1.48 available which doesn't have this bug. Unfortunately this isn't the default and you have to install it manually.(NB: These instructions are for the release 3.1 package; with the latest beta you should be able to do just "sudo apt-get install libboost-serialization1.48-dev libboost-filesystem1.48-dev".)
35fe9a5643