FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 05-13-2012, 09:25 PM
ray burke
 
Default Fwd: Fwd: re update firefox 9 to 11

---------- Forwarded message ----------
From: ray burke <rayburke30@gmail.com>
Date: Mon, 14 May 2012 07:19:25 +1000
Subject: Re: Fwd: re update firefox 9 to 11
To: Kubuntu user technical support <kubuntu-users@lists.ubuntu.com>

Steve Riley,

should that then read
$ sudo apt-mark hold firefox 10.02
$ sudo echo firefox 10.02 | dpkg --set-selections

to stop the 10.02 from trying to install, or should it read
with firefox 9.0 so as to pin the 9.0 eg
$ sudo apt-mark hold firefox 9.0
$ sudo echo firefox 9.0 | dpkg --set-selections

as I am a little lost?

ray
PS I tried the first command with firefox 9.0.1 and result was-
rayburke@rayburke-desktop:~$ sudo apt-mark hold firefox 9.0.1
[sudo] password for rayburke:
Usage: apt-mark [options] {markauto|unmarkauto} packages...

apt-mark: error: first argument must be 'markauto', 'unmarkauto' or 'showauto'
rayburke@rayburke-desktop:~$

so what should it be?

On 5/13/12, Steve Riley <stvrly@gmail.com> wrote:
> On 2012-05-13 08:48:49 O. Sinclair <o.sinclair@gmail.com> wrote:
>>
>> On 13/05/12 08:29, ray burke wrote:
>> >
>> > No I want to stay with 9.0?
>> >
>>
>> There should be an apt-get command (or if you use synaptics, I don't
>> remember kpackagekit myself) to "park" a package and not get updates for
>> it. Exactly how to do it I recommend you read man pages for apt-get and
>> use internet search engines as I don't remember. Am now using Muon
>> myself, it has a function for that.
>
>
> Two ways. Either of the commands below will accomplish this.
>
> $ sudo apt-mark hold PACKAGE-NAME
> $ sudo echo "PACKAGE-NAME hold" | dpkg --set-selections
>
> The first command is simply a wrapper that performs the same thing as the
> second command.
>
> ...Steve
>
>
> --
> kubuntu-users mailing list
> kubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
>

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 05-13-2012, 11:15 PM
Steve Riley
 
Default Fwd: Fwd: re update firefox 9 to 11

You asked a separate questions, so I'll answer them separately.


On 2012-05-14 07:25:42 ray burke <rayburke30@gmail.com> wrote:
>
> should that then read
> $ sudo apt-mark hold firefox 10.02
> $ sudo echo firefox 10.02 | dpkg --set-selections
>
> to stop the 10.02 from trying to install, or should it read
> with firefox 9.0 so as to pin the 9.0 eg
> $ sudo apt-mark hold firefox 9.0
> $ sudo echo firefox 9.0 | dpkg --set-selections
>
> as I am a little lost?

My suggestion was to use _either_ of those commands, not both. The commands
accept only package names (without version details), and the result is that
the current installed version -- whatever it happens to be -- is the one that
will be held. Placing a hold on an installed version of any package prevents
that version from being upgraded.

So, assuming that Firefox version 9.0 is currently installed, then either

$ sudo apt-mark hold firefox

OR

$ sudo echo "firefox hold" | dpkg --set-selections

would do the trick.


> I tried the first command with firefox 9.0.1 and result was-
> rayburke@rayburke-desktop:~$ sudo apt-mark hold firefox 9.0.1
> [sudo] password for rayburke:
> Usage: apt-mark [options] {markauto|unmarkauto} packages...
>
> apt-mark: error: first argument must be 'markauto', 'unmarkauto' or
> 'showauto' rayburke@rayburke-desktop:~$
>
> so what should it be?

It turns out, and I didn't realize this until earlier today, that the "hold"
functionality of apt-mark is a recent addition. So using this approach won't
work for you. Therefore, you'll have to use the second command:

$ sudo echo "firefox hold" | dpkg --set-selections

Do _not_ indicate a version number here, because remember: the instruction
means to hold whatever version is currently installed.

_Do_ include the world "hold" inside the quotes.


...Steve


--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org