EzDevInfo.com

synaptic interview questions

Top synaptic frequently asked interview questions

"Dependency is not satisfiable" error when trying to install an application

When I try to install glchess in Synaptic

glchess install

I get this error error

At a certain time I installed the Gnome desktop and a lot of games that came with it and then uninstalled the games. Now I want chess back. When I downloaded the deb file and tried to install it in Gdebi I got a similar error: install error glchess

What should I change in repositories?


Source: (StackOverflow)

Synaptic Package Manager doesn't launch from the Application Menu

My synaptic package manager not launching from application menu but i can launch it from terminal with gksudo synaptic . I have tried several times but from application menu i can't launch it .

The command is synaptic-pkexec is for launching it .


Source: (StackOverflow)

Advertisements

What's the name of the program that tells you how many packages need to be updated?

what's the name of the program that tells you how many packages need to be updated when you log in? I have it on some machines but not on others.

For example, it will say (from memory):

10 packages need updating 5 security patches

etc.


Source: (StackOverflow)

How can I get a list of all packages in a repository section from command line?

In Synaptic, one can list packages by section. For example, in the image below all packages of the "Amateur Radio (universe)" section are listed.

How can I get such a list (edit: with package description) at the command line?

I need a raw list; a terminal application like aptitude will not do.

synaptic


Source: (StackOverflow)

Why don't applications opened as root use global menu?

Why do applications like synaptic (and other that need root privilege) have their menus in the window instead of top panel? Is it going to change or will it stay like that to indicate that user is on root privileges?


Source: (StackOverflow)

Are ubuntu software center sources different from apt-get / synaptic?

I'm trying to download master-pdf-editor package from official repositories. All sites report that it's easy to do: just download it from ubuntu software center. I can't install the software center, so I'm trying to install it via apt-get or synaptic, but I can't find the package in the repos...

Can anyone help?


Source: (StackOverflow)

Couldn't find synaptics properties after reboot. No synaptics driver loaded?

Every time I reboot my laptop, my touchpad scrolling stops to work. I assume it's because my synaptics isn't loading as when I try to run synclient. I get the

Couldn't find synaptics properties. No synaptics driver loaded?

error. In addition, my touchpad is read as a P2 Generic Mouse, instead of ETPS/2 Elantech Touchpad.

To fix it I just run sudo rmmod psmouse and sudo modprobe -v psmouse. and everything is back to normal. How can I make the change permanent?


Source: (StackOverflow)

How to only apt-get upgrade Certain Applications?

I only have a traffic-limited mobile broadband connection at my disposal. sudo apt-get dist-upgrade wants to get ~500MB of data which is not feasible for me right now.

Hence, is it possible to only upgrade certain applications, e.g. Firefox?

I am quite aware that some libs must be upgraded as well, but 100MB a day won't hurt, 500MB do.

Basically, I want to split up the upgrade-process into little chunks over the month so I don't exceed my daily quota just by downloading updates.


Source: (StackOverflow)

What does this "Canonical does not provide updates..." mean in my package manager?

In both Synaptic Package Manager and Ubuntu Software Center, I sometimes see the following footnote.

Canonical does not provide updates for deja-dup. Some updates may be provided by the Ubuntu community.

Does this mean that these packages are not automatically updated as new versions are released?
... or does it just mean that Canonical plays no part in the development of the particular app.
... or does it mean something else?

Do I need to monitor and manage the installation of latest releases myself?


Source: (StackOverflow)

Apt/Synaptic needs to reinstall package but can't find the archive for it

Running Synaptic I get the following error message:

E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

Upon accepting the message, Synaptic quits.


Source: (StackOverflow)

How to open the Synaptic Package Manager in Unity?

I just installed a fresh copy of Ubuntu 11.10. How to open the Synaptic Package Manager?


Source: (StackOverflow)

apt-get vs. aptitude .vs synaptic compatibility

As a former Debian user, I "kind of" remember that I should only use one of the package managers... Either apt-get, aptitude, or synaptic, but not the three in combination 'cause there may be conflicts, they don't mix well.

I don't know where I have heard it, but it has left its memory print. So I just want to check with you if it is really not advised or if it is an urban legend and it is completely safe. Could you confirm this ?

Is the cleanest way of installing a package is still using the command checkinstall before invoking dpkg ?


Source: (StackOverflow)

Assign highest priority to my local repository

Summary

How can I make apt-get prefer local repository packages instead of downloading again the same package version from official repositories? The local repository is signed and trusted. We've already tried apt preferences priority.


Original question was : "How to assign highest priority to local repository without using sources.list file"

I have setup a local repository with packages I downloaded. I use it to avoid downloading the same packages over the Internet, when I need to reinstall my Ubuntu. It is a basic repository, created with apt-ftparchive packages . > Packages. I made this a trusted repository to avoid "unauthenticated repository" warning. (When you have a untrusted repository, apt or synaptic try to download the same packages over the Internet, 'cause it is trusted).

I have been using this local repository for at least 1 years. But I have to always put my local repository line at the top of the sources.list file to use this. But this is annoying, since I must open a terminal and do some typing on it every time I reinstall Ubuntu, though there is a better tool software-properties-gtk. I cannot use this tool since it place the source line at the end of `sources.list.

And the real problem is that, the apt or synaptic always download a package from the source which is mentioned earlier, without inspecting whether the packages are already available in the local repository. So, I have no choice but to place the local source at the top of sources.list doing terminal (I actually don't hate terminal, but I need a solution) .

I have tried this method. But this does not help me.

My preference file is this in /etc/apt/preferences.d/local-pin-900

    Package: *
    Pin: release o=Local,n=ubuntu-local
    Pin-Priority: 900

My release file is this

    Origin: Local
    Label: Local-Ubuntu
    Description: Local Ubuntu Repository
    Codename: ubuntu-local
    MD5Sum:
     ed43222856d18f389c637ac3d7dd6f85          1043412 Packages
     d41d8cd98f00b204e9800998ecf8427e                0 Sources

When I enable the apt-preference, the apt-cache policy correctly shows the preference, e.g. It shows the local repository has the highest priority.

But when I do this sudo apt-get install <package-name>, apt tries to download it from Internet. But when I place my local-repo at the top, it installs from local repository.

So, My question is -> 'Is it possible to force apt to use local repository when the package is available in local repository, without explicitly placing "the local source" at the top of my repository list (e.g sources.list file) ?'

Edit: output of apt-cache policy $package_name is as follows

  
nautilus-wipe:
  Installed: (none)
  Candidate: 0.1.1-2
  Version table:
     0.1.1-2 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
        900 file:/media/Main/Linux-Software/Ubuntu/Precise/  Packages

It is showing that my local repository has higher preference, though it is not the one which comes first in sources.list file.

Here is the output of apt-get install nautilus-wipe

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  nautilus-wipe
0 upgraded, 1 newly installed, 0 to remove and 131 not upgraded.
Need to get 30.7 kB of archives.
After this operation, 150 kB of additional disk space will be used.
'http://archive.ubuntu.com/ubuntu/pool/universe/n/nautilus-wipe/nautilus-wipe_0.1.1-2_i386.deb' nautilus-wipe_0.1.1-2_i386.deb 30730 MD5Sum:7d497b8dfcefe1c0b51a45f3b0466994

It is still trying to get the file from Internet, though I think it should be happy with the local one.


Result of using "" or localhost as mediageek suggested

Using localhost has no effect. but "" has but was not different than my method

    Package: *
    Pin: origin ""
    Pin-Priority: 1001

I have used them before posting the question. But again i tried this (for surity). The same result. apt-cache policy showing that my local repository has indeed the highest priority. but when i tried to install it is saying "Need to get XXX/XXX KB of archive".


Source: (StackOverflow)

How do I add the mainline kernel PPA?

How can I add the mainline kernel ppa to the synaptic software sources?

I have the url: http://kernel.ubuntu.com/~kernel-ppa/mainline/

but I am missing the ppa: line.


Source: (StackOverflow)