7

When I install transcriber 1.5.1.1-10 (which is a very old package last updated in 2004), My audio driver package which is current is depreciated to and older one:

Removing libsnack2-alsa (2.2.10-dfsg1-12build1) ...
Selecting previously unselected package libsnack-alsa.

When I try to reinstall libsnack2-alsa, then transcriber is removed. Is there a way to prevent this? Transcriber does not seem to work with the depreciated audio driver anyhow.

3
  • 1
    Run sudo apt-mark manual transcriber and then try..
    – heemayl
    Nov 8, 2015 at 2:04
  • Thanks for teaching me that. It's great to know. In the end, i just installed the windows/wine version. Nov 8, 2015 at 8:53
  • yes please that!! Nov 9, 2015 at 2:05

2 Answers 2

10

You can use apt-mark to mark a package as manually installed so that it will not be automatically removed while removing some other package (because it is a dependency of this package hence is marked as auto installed).

For example, in my computer i am mark-ing zenity as manually installed:

% apt-mark showauto zenity    
zenity

% sudo apt-mark manual zenity
zenity set to manually installed.

% apt-mark showmanual zenity 
zenity

In you case, you need:

sudo apt-mark manual transcriber
1
  • This is a real solution but I’m wondering if the package when marked as manually installed is still able to be automatically updated or just ‘hold’ prevents update… Nov 2, 2021 at 0:36
4

sudo apt-mark hold <package>

For example:

sudo apt-mark hold transcriber

The opposite is:

sudo apt-mark unhold <package>

To show what packages are held:

sudo apt-mark showhold

1
  • +1 because the other solution only prevents package removal only if it was installed automatically as a dependency, whereas this solution really prevents package removal during upgrades (in rare cases apt can't find a clean upgrade path and will want to remove some packages during a release upgrade, even if said packages can be reinstalled afterwards)
    – MoonSweep
    Jun 25, 2023 at 21:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .