Ubuntu package management (basic): sudo apt-get upgrade firefox [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Just wanted to update firefox from 11.0 to 13.0 on the latest
ubuntu so did the following:
$ sudo apt-get upgrade firefox
thinking that my firefox would be upgraded.
Instead ubuntu started to update every single package in the
whole system it seems. Now I cannot stop the process for fear
that if I do it might leave the system in an inconsistent state.
Where have I gone wrong in issuing the right command for upgrading
a single package in the command line. OK, thankfully 15 minutes
later the command returned successfully.
What is the difference between upgrade and update?
Thanks,
John Goche

Taken directly from the apt-get man page:
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available. An update should always be performed before
an upgrade or dist-upgrade. Please be aware that the overall
progress meter will be incorrect as the size of the package files
cannot be known in advance.
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
Update is used to update the apt-get package list, upgrade is used to install updates for all packages. To update just one package, use install.
sudo apt-get install firefox

Try this:
apt-get update
apt-get install firefox
You must use install command to install and to update package also.

From man apt-get:
upgrade
upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated
in
/etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded
(...)
install
install is followed by one or more packages desired for installation or upgrading.
(...)

Related

apt-get can't install (dependency conflicts?) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm having a problem with apt-get. I'm trying to install gsoap, typing
apt-get install gsoap
but I'm getting
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev : Breaks: gcc-4.4 (< 4.4.6-4) but 4.4.5-8 is to be installed
E: Broken packages
Question 1: can someone translate this into English?
I tried running apt-get -f install, but all it said was "0 upgraded, 0 newly installed, 0 to remove and 1153 not upgraded".
This is really frustrating. I know dependency management is a hard problem, but I thought it was the job of a tool like apt-get to solve that problem for me. In this case it feels like there's something it's decided it can't do, and it's expecting me to resolve it, but it's telling me what's wrong using language which I frankly do not understand.
Question 2: is there something I could read to help me understand apt's dependency management philosophy, so I could maybe understand what's going on here?
If I should be asking these questions somewhere else let me know.
Addendum: per the Debian bug report linked to by mertyildiran, there was definitely a dependency problem involving gcc-4.4 and squeeze (which is in fact what I'm running). That bug claims to be fixed, but somehow the fix isn't helping me.
I suspect it may be time to ask Question 3: Is there a way to hand-edit the dependency list to make this problem go away? That's a terrible idea, I know, but at this point that may be my only choice other than blowing away the whole machine and reinstalling squeeze or wheezy from scratch, and that's a daunting prospect.
Run the following command
sudo apt install aptitude && sudo aptitude install gsoap
It might be that #JosephWorks' solution
sudo apt install aptitude && sudo aptitude install gsoap
actually helps with
Question 3: Is there a way to hand-edit the dependency list to make this problem go away?
Aptitude offers several configuration/downgrading options that installs the package you wish for. You can list the different options with n and choose one with Y.
This solution has been reported in several forums:
sudo apt-get clean && apt-get update
sudo apt-get install -f
sudo apt-get install gsoap
Sources:
http://forums.debian.net/viewtopic.php?f=5&t=70540
http://www.linuxforums.org/forum/debian-linux/182874-apt-get-install-complains-broken-packages.html
Debian Bug report about the issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676483
Explanation:
Let's see the functionality of clean argument with man apt-get:
clean
clean clears out the local repository of retrieved package files. It removes everything but the lock file from
/var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
Simply clean will reset your local package index so you can update your package index in most clean way.
I believe you have made a dist-upgrade in the past or manually edited your /etc/apt/sources.list. Maybe a PPA(Personal Package Archive) that you have used caused this problem.
If the error persists:
Compile and Install gcc-4.4.5
Download gcc-4.4.5: http://www.netgull.com/gcc/releases/gcc-4.4.5/gcc-4.4.5.tar.gz
tar -zxvf gcc-4.4.5.tar.gz
cd gcc-4.4.5/
./configure
make
sudo make install
sudo apt-get install gsoap
Probably you have an old distro. Ubuntu 16.04 comes with gcc-5.4.0. Installing gcc-4.4.5 should solve the problem.
#Steve You wanna try this ?
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential

how to install yum package on linux RHEL 4? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
when i run root#localhost# yum install package_name command on linux terminal it gives:
bash: yum: command not found
because i don't have yello update and modifier package install on my linux . for that i mount my linux iso disc.and write command
root#localhost# cd /meida/RHEL_4/i386/ Disk/ 1/
root#localhost RHEL_4 i386 Disk 1# ls
but there is no package directory. and i didn't find any http url form downloading(wget) yum.x.x.x.rpm. i have linux RHEL 4 AS version installed. plz help
Yum is not compatible with RHEL 4 (FOR RHN Stuff). They don't officially ship yum with rhel4 instead use legacy 'up2date' utility. up2date is similar to yum but far less featured package management utility but good in dependency resolution. It resolves the packages dependencies in same way, yum do.
Anyway, You can get the rpm package here, http://dl.fedoraproject.org/pub/epel...oview/yum.html. Just download it and install using rpm -ivh command. don't expect, yum will download the packages from RHN. to sync with rhn you still have to use up2date.

after install python 2.7.3 yum is broken [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
i installed libxml2-2.9.0 and libxslt-1.1.27 then yum is broken any yum command that i ran i got the result of :
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Jan 21 2009, 01:11:33)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
then i thought python version is way too old and install python 2.7.3 and install it from scratch, after some wrong trials it got worse and worse, now when i run 'python -V' i got version 'Python 2.7.3', when i run '/usr/bin/python -V', it returned 'python-2.4.3-24.el5', and no matter what i did the yum is still broken with that message. how can i get yum back?
my os is: linux 2.6.18-164.11.1.el5 x86_64 GNU/Linux
See the FAQ:
In pre-2.3.? yum This error message is often misleading. To see the
real error, run python from the command line, and type import yum. The
problem probably isn't with your version of python at all, but with a
missing libxml2-python, python-sqlite, or python-elementtree package.
Yum 2.4.x provides a different error with the module import errors, so
this will become less confusing.
It also includes a directive to send the error to the mailing list.
Really, you should figure out what rpm provides the module that was
missing and try to install that.
If you are getting a message that yum itself is the missing module
then you probably installed it incorreclty (or installed the source
rpm using make/make install). If possible, find a prebuilt rpm that
will work for your system like one from Fedora or CentOS. Or, you can
download the srpm and do a
rpmbuild --rebuild yum*.src.rpm
So, if else fails, you can get the yum package somewhere like this.

If I installed Mongo through apt-get, how do I update it? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
It seems like they gave me 1.4.4 Which is not the latest.
Is this normal? I want 1.6. But I'm afraid that if I do apt-get uninstall, bad things will happen.
I'd recommend using the official Ubuntu and Debian packages ...
http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
That'll make sure you'll always get the latest stable version. If you use this on Ubuntu (for example) MongoDB will install to /var/lib/mongodb/ (instead of /data/db/)
So, if your data is already in /var/lib/mongodb/ you should be fine doing an uninstall and reinstall from the offical packages ... it shouldn't remove that dir unless it was a horible port in the first place!
Simply making a backup copy of that dir should do the trick if you are worried, good practice anyhow.
You can also always move your DB files into that dir after the install and MongoDB will pick them up (normally.)
Before you do anything however, just make sure you do a clean shutdown first! That way you won't end up with a mongod.lock file which won't let you do a restart w/o a repair.
$ ./mongo
> use admin
> db.shutdownServer()
I'd recommend not to touch your distribution and operating system version, and go for the simple solution of installing a downloaded package: www.mongodb.org/downloads.
Especially if you are using Debian, since Mongo 1.1.6 is supported only on unstable - packages.debian.org/search?keywords=mongodb
Tip: If you are on Debian or Ubuntu, check this page: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
Installing anything via apt-get installs whichever version is the default from all known repositories. By default that only includes your distributions repository (Debian, Ubuntu, ...).
Those repositories contain well-defined, well-tested versions of the software. They don't always get updated to the latest version (or may be somewhat slow).
If you require a specific version (or the latest one), then you need to find a repository that provides that version (possibly provided by the developers of the software) or install it via other means.
Frankly, this is a question about Debian packaging system. Anyway here it is my suggestion.
Make sure you have listed "unstable" in apt-get sources:
# cat /etc/apt/sources.list.d/unstable.list
deb ftp://<your closest debian mirror>/debian/ unstable main contrib non-free
deb-src ftp://<your closest debian mirror>/debian/ unstable main
Find your mirror in the list of mirrors
Then do
apt-get update
apt-get install mongodb-server /unstable
apt-get install mongodb-clients /unstable
(be careful if it's your production -- MongoDB will be restarted)
And by the way, the latest version of MongoDB in Debian "unstable" is 1.6.5: MongoDB in "sid"

Installing cassandra in ubuntu?

I have already installed cassandra in ubuntu using with wiki
Problem is I have no control over which version to install and upgrade to in feature.
I am want to be able to install specific version not just latest, because i have a machine running 0.6.2 now i want a another node and i want to install 0.6.2.
How can i install debian package for specific version instead of latest one?
for installing a specific version of cassandra you can do something like this:
in this case i want to install cassandra 1.2.8
sudo apt-get clean
sudo apt-get update
sudo apt-get install cassandra=1.2.8
The best way to do something like this, that I have found so far is pinning. This is a little inconvenient at the moment because you have to manually create the pinning preferences (and change them if necessary). Also, the pinning will not work with aptitude in case you use this.
Another example is the pinning I have done for php here. However, you have to make sure that whatever version you want to have is available in the repos/ppas that you have configured in your sources.list (sources.list.d).

Resources