Unfortunatley I trashed my current core so I am in the middle of renstalling via DVD, I have re read the wikis and forum posts and I am still confused as to which of these we should do and which ones we use to keep up to date........to many conflicting stories can someone please confirm
apt-get update
apt-get upgrade
apt get dist upgrade
thanks
Beeker
only apt-get update and apt-get dist-upgrade
if you do apt-get upgrade you will upgrade to kubuntu 9.10
thanks much appreciated feedback.
I have just done fresh install and have only done apt-get update on the core/hybrid, so should I do apt-get dist-upgrade as well and the other question should I do both of those commands on my other md.
And lastly I do both of these commands on the core/hybrid and md's on a regular basis
Quote from: maverick0815 on January 23, 2010, 12:08:06 PM
only apt-get update and apt-get dist-upgrade
if you do apt-get upgrade you will upgrade to kubuntu 9.10
apt-get upgrade will NOT upgrade to 9.10.
apt-get update will update the list of packages from all repositories
apt-get upgrade will upgrade any existing installed packages.
apt-get dist-upgrade will upgrade any existing packages and install any new required packages.
Under normal circumstances you should perform apt-get update and apt-get upgrade. Performing an apt-get dist-upgrade can *sometimes* install packages which will conflict with LMCE and cause things to break. There are completely seperate commands used to upgrade to 9.10.
J.
Excellent advice..........can you confirm that I should do this on some sort of regular basis to the core/hybrid and if that is so , then do I need to the same thing to each of my md's
LMCE updates are not relased on any schedule but usually every week or two there are some updated packages. Usually if your system is working well there is no need to do an upgrade. But there may be bugfixes or new features which affect your system (or your enjoyment of it) that you wish to take advantage of.
When you do a package upgrade you should do it on the core first and then on each or your media directors. If you do not upgrade each of your MDs some functionality can break. (MythTV is an example.)
So.. In most situations you want to do the following:
On your core:
apt-get update
apt-get upgrade
Then on each MD (after you've completed the core upgrade)
apt-get update
apt-get upgrade
Sometimes performing an 'apt-get dist-upgrade' is required to install new packages (like new kernels when they are available) but this is rare and you will know when it may affect you because 'apt-get upgrade' will tell you that 'The following packages have been held back'... or something similar. This is telling you that there are packages that will not be changed with 'apt-get upgrade' and that performing an 'apt-get dist-upgrade' would likely install the new packages. This can sometimes cause problems so be careful if you do. Backups can be very handy.
Hope that helps clarify a little.
J.
On my core apt-get dist-upgrade broke myth by installing .23. had to remove 23 and reinstall 22. so be careful.
fell for that one as well.......spent the whole day reinstalling then working out how to downgrade mythtv back to 0.22 once I did that all working again. Just have to learn how to fully use mythtv........it was Mavericks post that got things back on track.......... let me say I wont be doing a apt-get dist-upgrade in the near future after losing a day and having to go through all that pain again.
As a side note - MythTV's perl stuff WILL go to .23 using "upgrade". I'm not sure if LinuxMCE depends on it or not, but mixing versions generally leads to bad times. For this reason, you should apply the fix in ticket 574 ( http://svn.linuxmce.org/trac.cgi/ticket/574 ) to the core and each MD BEFORE attempting any updates.
Use the "-V" option to see what version you are getting if you are still worried. Here is the output without the preferences file:
j@dcerouter:/etc/apt$ sudo apt-get -V upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
mythtv-common (0.22.0-fixes23229-0ubuntu0 => 0.23.0~trunk-23168-0ubuntu0)
mythtv-database (0.22.0-fixes23229-0ubuntu0 => 0.23.0~trunk-23168-0ubuntu0)
The following packages will be upgraded:
libmyth-perl (0.22.0-fixes23229-0ubuntu0 => 0.23.0~trunk-23168-0ubuntu0)
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/56.6kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
and with the preference file:
j@dcerouter:/etc/apt$ sudo apt-get -V upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Quote from: Beeker on January 23, 2010, 01:43:56 AM
Unfortunatley I trashed my current core so I am in the middle of renstalling via DVD, I have re read the wikis and forum posts and I am still confused as to which of these we should do and which ones we use to keep up to date........to many conflicting stories can someone please confirm
apt-get update
apt-get upgrade
apt get dist upgrade
thanks
Beeker
Ref http://wiki.linuxmce.org/index.php/Installing_0810
apt get dist upgrade is only used if you install manually using the kubuntu 8.10 desktop release
If you use the DVD install, use
apt-get update
apt-get upgrade
It even says at the bottom of the DVD install directions...
"Note: You should NOT run apt-get dist-upgrade after the initial install, as it can cause several problems, including having different kernel versions on your core and media directors, and the installation of new Kubuntu packages that can break some features!"
Thanks to everyone for your valuable advice.........
Can you explain me how I create this preference file? In my instalation I dont have it in apt folder. What I made was put text from ticket on file and save it "preference", but when I do the apt-get -V upgrade I have the same message without the preference file.
thanks
Quote from: jimbodude on January 25, 2010, 04:24:56 PM
As a side note - MythTV's perl stuff WILL go to .23 using "upgrade". I'm not sure if LinuxMCE depends on it or not, but mixing versions generally leads to bad times. For this reason, you should apply the fix in ticket 574 ( http://svn.linuxmce.org/trac.cgi/ticket/574 ) to the core and each MD BEFORE attempting any updates.
Use the "-V" option to see what version you are getting if you are still worried. Here is the output without the preferences file:
j@dcerouter:/etc/apt$ sudo apt-get -V upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
mythtv-common (0.22.0-fixes23229-0ubuntu0 => 0.23.0~trunk-23168-0ubuntu0)
mythtv-database (0.22.0-fixes23229-0ubuntu0 => 0.23.0~trunk-23168-0ubuntu0)
The following packages will be upgraded:
libmyth-perl (0.22.0-fixes23229-0ubuntu0 => 0.23.0~trunk-23168-0ubuntu0)
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/56.6kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
and with the preference file:
j@dcerouter:/etc/apt$ sudo apt-get -V upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Quote from: the anxious on April 15, 2010, 01:27:29 PM
Can you explain me how I create this preference file? In my instalation I dont have it in apt folder. What I made was put text from ticket on file and save it "preference", but when I do the apt-get -V upgrade I have the same message without the preference file.
thanks
In a terminal window paste the following:
sudo echo "Package: mythtv mythtv-frontend mythtv-backend mythtv-common mythtv-database mythtv-transcode-utils mythweb libmyth-perl
Pin: version 2:0.22*
Pin-Priority: 1001
">>/etc/apt/preferences
enter your user password when prompted. HTH
J.
Thank you phenigma.
Your welcome. Another thought: Check the apt repository file /etc/apt/sources.list and see if it includes a reference to the avenard "testing" repository. From a terminal window you can type: cat /etc/apt/sources.list
You should see a line that looks like this:
deb http://www.avenard.org/files/ubuntu-repos intrepid release
Make sure the word "testing" is not in the line anywhere.
J.