date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,621,168,052,000 |
I was trying to use Ubuntu using Oracle Virtualbox 6.1.2.
I cannot make the Ubuntu size full screen. I now have a tiny window with a lot of black background. When I tried inserting guest additions cd image (from Menu -> devices), I got the error message:
Could not mount the media (VERR_PDM_MEDIA_LOCKED)
And when I tr... |
I was able to resolve the issue yesterday by following the YouTube video: https://www.youtube.com/watch?time_continue=267&v=WiYNrx1Grak&feature=emb_logo
But, later after several hours, the small screen size problem again resurfaced. The problem was again resolved by installing VirtualBox 6.1.2 Oracle VM VirtualBox Ext... | How to increase Ubuntu small screen size in Oracle VirtualBox? |
1,621,168,052,000 |
I have a problem with screen blurring on one of my displays. Both of them are connected via DP cable. When I'm scrolling text or there is anything moving on that display, there is a visible blur. I was trying to solve it, trying to fin solution and cannot find any except using xinerama or TwinView, which does not seem... |
Tear/blur is just that the graphics card doesn't keep up with the change in the images to be displayed. Not nice, sure. But I very much doubt any software-based change (unless it is slower changes of stuff to display) will make any difference.
| It there any linux system that does not tear or blur on multi display configuration? |
1,621,168,052,000 |
I'm running Linux Mint with MATE. My external HDMI monitors no longer work with my single HDMI port.
lspci -v
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
Subsystem: Dell Haswell-ULT DRAM Controller
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
... |
I reinstalled the drivers, rebooted, and now the two LG monitors work again.
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo ubuntu-drivers autoinstall
| HDMI Not detected / HDMI Disconnected |
1,543,410,918,000 |
How can I stop my monitor screen from going to sleep on CentOS 7 Desktop (X Windows) due to inactivity?
|
Step 1:
Go to Settings
Step 2:
Under Power Saving change Blank screen to Never
| How can I prevent a desktop monitor screen from going to sleep when inactive on CentOs 7 Linux? |
1,543,410,918,000 |
I have recently set up Xvfb on Centos 7 machine.
It is working absolutely fine.
Only problem is that if I quit putty session (remote access) it would keep running Xvfb in background but display will be gone.
So next time when I take remote access via putty first I have to type export DISPLAY=:99 again, then I start ... |
I second what @JigglyNaga said, there is nothing wrong/missing after looking at your .profile file.
Only thing I would suggest copy same contents at
/home/aditi.a/.profile and .bashrc
/root/.profile and .bashrc files
| Xvfb: export display permanently |
1,543,410,918,000 |
I have an HP laptop, the reference is Elitebook 840 G3. I'm running on Linux Mint 18 Sarah 32 bits.
After several months of usage, everything works like a charm except the dual screen.
Every time I plug in a new screen device, the computer completely crashes and I have to do a hard reboot. It happens no matter what di... |
Ok so I figured it out.
I tried un-installing and re-installing the intel driver called xserver-xorg-video-intel and for some reason after rebooting it worked properly. I don't really understand the reasons, but a simple graphic driver re-install works !
| Linux Mint crashes when I connect a new screen |
1,543,410,918,000 |
I've been trying to create a shortcut to rotate the display, but the command I put (xrandr --output XWAYLAND0 --rotate left) into the shortcut does not do anything. I opened a terminal and typed it there, nothing happened. Using --verbose shows:
[suppboii@yoboi ~]$ xrandr --output XWAYLAND0 --rotate left --verbose
sc... |
I fixed it by logging into fedora with the option GNOME on Xorg in the login screen after booting.
| Rotate screen shortcut on Fedora 27 |
1,543,410,918,000 |
I'm using Amazon Linux. I'm running an automated script through Jenkins with this command
Xvfb :10 -ac
However, if this command has already been run before, I get the error ...
(EE)
Fatal server error:
(EE) Server is already active for display 10
If this server is no longer running, remove /tmp/.X10-lock
an... |
As the message says, there is a lock file, /tmp/.X10-lock. So modify your script thusly to only execute if the lock does not exist:
if [[ ! -f /tmp/.X10-lock ]]; then
Xvfb :10 -ac
else
echo "INFO: $(date) - X Server already running" 1>&2
fi
| How can I prevent running "Xvfb :10 -ac" if it has already been run before? |
1,543,410,918,000 |
I have Xubuntu 16.10 LTS. I have put a new (compatible) 2GB RAM into my old Dell Latitude D610. It's been working for about 2-3 weeks, but then it's acting really strange.
None of the icons appear like they should. They appear like that piece of paper with the X mark on it, and the panel and menu icons are just gone.... |
It appears that one of the Linux Kernels were broken, so that may be the cause.
Thank you all for giving your time and effort to help me in my situation!!
| What's wrong with my display? [closed] |
1,543,410,918,000 |
Apparently Canonical did something to X that prevents the Nvidia driver to rotate screens (via xrandr or the control panel GUI). This affects all Ubuntu based distros like Mint.
To see if this might be the reason to switch to suse, debian, LMDE or arch, could someone on a non-ubuntu based distro confirm that rotating ... |
This was a deliberate limitation of the NVIDIA driver which since has been removed. See: https://unix.stackexchange.com/a/392390/48285
| Can you rotate a screen with Nvidia drivers on a non-Ubuntu Linux? |
1,543,410,918,000 |
I am using CentOS 6.5 but cat /etc/issue shows the following
Oracle Linux Server release 6.8
Kernel \r on an \m
May be I have updated few programs using Oracle repository.
After restart, I get the following message on a command prompt.
Oracle Linux server release 6.8
lo: Disabled Privacy extensions
I could only ge... |
The run-level 3 is the default when you don't have a graphical environment (X). For a graphical environment, the standard is level 5.
To permanently change the init run-level on your system, you should edit /etc/inittab, look for the default run level on a line similar to id:3:initdefault:, and change the 3 to 5. Wh... | Graphics display not working on CentOS 6 |
1,543,410,918,000 |
I would like to show a tux logo on am335x processor using a fbcon + framebuffer driver. At the moment i have ti-linux 3.14 configured to use DRM and ti,lcdc driver. Also i have devicetree lcd panel node written with usage of tilcdc driver. Is possible to display logo using only ti,lcdc driver or should i use da8xx-fb ... |
Here and found some information how to do it other way thanks to psplash https://e2e.ti.com/support/arm/sitara_arm/f/791/t/398816. But this is not solution for my question. It's only a workaround in userspace. I would like to have kernel solution.
| Is DRM+ti,lcdc driver capable of showing tux logo when kernel is booting? |
1,543,410,918,000 |
I first noticed an issue I had on Linux Mint using the mate desktop environment. I wasn't able to resolve it, so I thought that switching to a different distro and desktop would be the answer. I'm now using Antergos and the openbox desktop and I've run into the same problem once again.
My icons look weird and are show... |
I've solved the problem by downgrading llvm-libs and clang to 3.9.0-3 (from 3.9.1-1).
Window decorations and most icons a reddish tone
| How do I fix the colors of my icons? |
1,543,410,918,000 |
I have a Debian 32 bit machine running a server application.
During previous reboot there seems to be some problem with display manager.
After boot the display is blank. I am able to SSH to this from other systems and have root access. During boot the display works fine.
Can you please tell me how can I reinstall GNO... |
I dont,t know what display-manager you use, So this will reinstall your Display-manager and gnome. apt install --reinstall $(cat /etc/X11/default-display-manager | cut -d / -f 4) gnome-session
| Debian Wheezy GNOME corrupted after reboot |
1,543,410,918,000 |
I was trying to play a video on my laptop using SSH command from my android phone(JuiceSSH). but the video started playing in bytes in my phone's terminal. the player was VLC player. how can I make it run the movie on the laptop not on my phone terminal.
|
VLC would be using the X Window System for the pictures. If you have a session running on the laptop, e.g., its desktop, X would be running.
From the desktop you can make a connection to X without problem, and use xhost to add your phone to the "computers" which can connect to the X display. Something like this (in ... | Distinguishing between running a process in client terminal or on the server when using SSH [duplicate] |
1,543,410,918,000 |
I recently installed Fedora 22 on a dual-boot with Windows 8 on the other. But, since I installed it, I have had the following problem:
When I press my power button to switch it on, the screen just shows black (or navy blue) for some seconds, goes off and then show a dimmer version of the color basically till I swi... |
The problem has been solved, It was actually a screen problem(although I still don't understand how shutting down causes it to be more persistent). The connector at the back of the screen us shaky
| Why my manufacturer splash screen is not showing? [closed] |
1,543,410,918,000 |
I am trying to display an image using the following:
Display someimage.jpeg
It returns this:
display: unable to open X server `' @ error/display.c/DisplayImageCommand/426.
I have been looking at other posts and I have tried the following with no luck:
export DISPLAY="0.0"
|
Apparently your DISPLAY variable is not being recognized. Run Display via:
DISPLAY=:0 Display someimage.jpeg
If that works, it is an indication your export is not working correctly. Before running the command, what is the output of echo $DISPLAY?
| unable to open X server with ImageMagick Mac osx |
1,543,410,918,000 |
I got the following problem:
Well, just installed Fedora 19 alongside to my Debian installation. While GNOME Shell is working perfectly fine when running with Debian, there are some strange display errors (e.g. coloured backgrounds of icons; when opening the dash (where all installed applications are listed) the backg... |
For this card, i should think is nouveau driver. Try the propertary driver in the nvidia page.
| How to fix display error with GNOME Shell on Fedora 19? |
1,543,410,918,000 |
I am tired of people looking at my computer display screen when I am using the computer and seeing my secrets and confidential information etc. How do I prevent people peeking over my shoulder from seeing private information I am working on, for example a work document?
|
3M manufactures a product called Privacy Filter which is a membrane attached to your monitor that will make it visible only for the very specific angle where the user is expected to be. I have never used this device and cannot testify for its effectiveness, but there are several promotional videos and reviews on YouTu... | Hiding information on a physical monitor [closed] |
1,543,410,918,000 |
What is the relation between X server and display?
Can multiple X servers run simultaneously on the same display?
Can a X server run simultaneously on multiple displays?
Thanks.
|
The display is effectively the X server; there is exactly one display per X server. So multiple X servers can’t run simultaneously on the same display, and an X server can’t run simultaneously on multiple displays. (Strictly speaking, the latter point isn’t correct, but I don’t think there’s an X server which can serv... | What is the relation between X server and display? |
1,543,410,918,000 |
I have 2 laptops both using linux mint 20.1 and connected over local network (WiFi).
I have a user1@host1 and a user2@host2.
I am running ssh server on host2 and client on host1.
I want to use host2's display to show the result if I send any command via ssh from host1 to host2.
Ex:
The command which is used to swit... |
I am running ssh server on host2 and accessing via host1. I want to use host2's display to show the result.
The X server on host2 needs to be running.
The user you are logged in as needs to have the authorization to use the X server. On most distros (but not all), this is done by having a "magic cookie" in $HOME/.... | Control remote host's display over ssh connection |
1,543,410,918,000 |
From Can I specify an arbitrary `$DISPLAY`?
Do not confuse the actual display (your monitor(s)), the X11 server ("display"), and the way it's accessed via sockets or other means: DISPLAY=:0 and DISPLAY=localhost:10 as forwarded via ssh refer to the same display/xserver, the same video card, and the same monitor.
$DI... |
A X server is said to be started in a display
No. An X server provides a communication endpoint for X clients. X clients choose the server they want to communicate with either through a command line option or through an environment variable. From the view of the client, this is the "display" it uses, therefore the o... | Does `$DISPLAY` specify both a listening socket and a rendering target of a X server at the same time? |
1,543,410,918,000 |
From https://unix.stackexchange.com/a/505644/674
When you're using SSH, you can access the screen you're connected from by using ssh -X or ssh -Y . Programs can perfectly run on a machine and display on another one. So if you run light-locker through SSH on the remote machine, it will lock your local display and not... |
You need to learn about the workings of X. You have your local machine LOC and ssh to the remote machine REM. You have two X displays: LOC:0.0 and REM:0.0 . When you run ssh -X REM from LOC you create a new virtual X display on REM which is "REM:10.0" and points back to "LOC:0.0". So when you run a program on REM, its... | How can I lock the screen of a remote machine? |
1,543,410,918,000 |
I want to install Kali Linux (but the issue also appears for Debian). I created a live USB stick with the distribution. When reaching the splash screen I can select live execution and have a live version of Kali linux running without issue. When I select "install" (in graphical or text mode), a black rectangle appear... |
In the boot menu, I was selecting my usb stick. I didn't saw that there was another option called "legacy USB". Selecting that option solved the issue.
| Linux installation failure: black rectangle [closed] |
1,412,351,566,000 |
For whatever reasons, I've always used RPM based distributions (Fedora, Centos and currently openSUSE). I have often heard it stated that deb is better than rpm, but when asked why, have never been able to get a coherent answer (usually get some zealous ranting and copious amounts of spittle instead).
I understand the... |
Main difference for a package maintainer (I think that would be 'developer' in Debian lingo) is the way package meta-data and accompanying scripts come together.
In the RPM world, all your packages (the RPMs you maintain) are located in something like ~/rpmbuild. Underneath, there is the SPEC directory for your spec-f... | What are the pros/cons of deb vs. rpm? |
1,412,351,566,000 |
Just for fun, I thought I would use this command on my Raspberry Pi running Raspbian:
sudo rm -f /bin/rm
I thought I could just reinstall coreutils: I was wrong!
apt-get install --reinstall coreutils gives an error from dpkg, saying it couldn't remove the package. Compiling from source doesn't work because the Makefi... |
sudo touch /bin/rm && sudo chmod +x /bin/rm
apt-get download coreutils
sudo dpkg --unpack coreutils*
And never again.
Why didn't you use sudo with apt-get?
Because the download command doesn't require it:
download
download will download the given binary package into the current
directory... | I deleted /bin/rm. How do I recover it? |
1,412,351,566,000 |
I installed Unified Remote using dpkg:
dpkg -i urserver.deb
How do I uninstall it so I can reinstall from scratch?
|
First of all you should check if this package is correctly installed in your system and being listed by dpkg tool:
dpkg -l '*urserver*'
It should have an option ii in the first column of the output - that means 'installed ok installed'.
If you'd like to remove the package itself (without the configuration files), you'... | How to uninstall a .deb installed with dpkg? |
1,412,351,566,000 |
What are these file formats and how do they differ from the .msi format in Windows? Also what are the pros and cons of these package management schemes?
|
Files such as .deb and .rpm are more akin to a .zip file. They're a directory tree of files and sub-directories that contain files related to a particular application and/or library of files.
Distros
The .deb files are meant for distributions of Linux that derive from Debian (Ubuntu, Linux Mint, etc.). The .rpm files... | What are .deb and .rpm and how are they different from .msi? [closed] |
1,412,351,566,000 |
I would like to configure ubuntu package via dpkg-reconfigure with all the values supplied via non-interactive mode (in the script).
In fact my case is firebird confiiguration (http://www.firebirdsql.org/manual/ubusetup.html), that when using command:
sudo dpkg-reconfigure firebird2.5-superclassic -freadline
asks me ... |
You can always use the expect language to automate interaction with a process that expects its input on a tty. I haven't really used it before so I can't really add code here but yours is a typical use case.
UPDATE:
[Peter Butkovic] I consider pointing me to expect as a right direction, this script I ended with:
#!/us... | Feeding input values to dpkg-reconfigure in a non-interactive way |
1,412,351,566,000 |
I've seen this message several times whenever someone has a problem installing, upgrading or removing some piece of software, but I wonder, what does it mean, and more importantly, is possible to solve it?
(Reading database ... 81657 files and directories currently installed.)
Removing mongodb-10gen ...
arg: remove
... |
That message is generic. It just means that the dpkg instance called by apt/apt-get failed for some reason. It doesn't explain why, how, or give hints how to solve it. As a diagnostic message, it is not useful.
You need to read the lines before the message (sometimes quite a number of them) to find the real error that... | "E: Sub-process /usr/bin/dpkg returned an error code (1) " What does this mean? |
1,412,351,566,000 |
I used this command to add i386 arch:
sudo dpkg --add-architecture i386
And then immediately after without installing any packages I tried to remove the i386 arch like so:
sudo dpkg --remove-architecture i386
And i got the error:
dpkg: error: cannot remove architecture 'i386' currently in use by the database
Soluti... |
From your list, it looks like you just had the 32-bit packages used for Wine. Wine needs a bunch of 32-bit libraries to run 32-bit Windows applications. You won't be able to remove the i386 architecture unless you uninstall the 32-bit Wine. But there's no point in doing this: there's nothing wrong with having the i386... | dpkg: error: cannot remove architecture 'i386' currently in use by the database |
1,412,351,566,000 |
Where can I find infos about when the unattend updates/upgrades run and what ist done (or IF something was done)?
I want to enable the unattended-upgrades (for security updates) on a debian virtual server and, yeah, on my RaspberryPi, too.
Do I have to search the /var/log/apt -logs for infos about WHAT was installed a... |
Unattended upgrade has its own log-file in /var/log/unattended-upgrades/unattended-upgrades.log.
It is policed by anacron.
# These lines replace cron's entries
1 5 cron.daily run-parts --report /etc/cron.daily
7 10 cron.weekly run-parts --report /etc/cron.weekly
@monthly 15 cron.monthly run-parts --repo... | Where to find logs/information about unattended-upgrades (apt)? |
1,412,351,566,000 |
I am wondering if it is theoretically possible to build a Linux distro that can both support rpm and debian packages.
Are there any distros live out there that support both?
And if not is it even possible?
|
Bedrock Linux does this. Not saying I've done this, or that it is a good idea, but it is being done.
| Is it possible to build a Linux distro supporting both RPM and .deb packages? |
1,412,351,566,000 |
Is there a term to refer to the subset of packages that is automatically installed by Debian distribution?
I though that it had something to do with packages priorities, but it doesn't seem to be the case, cause there are packages of all the priority levels among the packages installed by default.
Also, some of those ... |
The base system is described in Debian policy as all packages with required or important priority.
You can search for the packages that the required and important priorities are attached to with the aptitude utility.
aptitude search ~prequired -F"%p"
aptitude search ~pimportant -F"%p"
debootstrap installs these packa... | What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not? |
1,412,351,566,000 |
I am trying to set up a staging environment in a VM, in order to test updates before applying them to my main system.
In order to do so, I have done a basic installation of Debian Wheezy (same as on the main system) in the VM, then ran as root from within the VM:
# dpkg --clear-selections
# dpkg --add-architecture i38... |
To clone a Debian installation, use the apt-clone utility. It's available (as a separate package, not part of the default installation) in Debian since wheezy and in Ubuntu since 12.04. On the existing machine, run
apt-clone clone foo
This creates a file foo.apt-clone.tar.gz. Copy it to the destination machine, and r... | How do I replicate installed package selections from one Debian system to another? (Debian Wheezy) |
1,412,351,566,000 |
When you upgrade or reinstall a package with dpkg (and ultimately anything that uses it, like apt-get etc) it backs up the existing files by creating a hard link to the file before replacing it. That way if the unpack fails it can easily put back the existing files. That's great, since it protects the operating syst... |
The behaviour you're seeing is implemented in archives.c in the dpkg source, line 1030 (for version 1.18.1):
debug(dbg_eachfiledetail, "tarobject nondirectory, 'link' backup");
if (link(fnamevb.buf,fnametmpvb.buf))
ohshite(_("unable to make backup link of '%.255s' before installing new version"),
ti->name)... | dpkg replacing files on a FAT filesystem |
1,412,351,566,000 |
Is there a way to list all non-free and contrib software installed in Debian via apt?
/etc/apt/sources.list is as follows
deb http://ftp.us.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.us.debian.org/debian/ wheezy main non-free contrib
deb http://security.debian.org/ wheezy/updates main non-free... |
dpkg-query -W -f='${Section}\t${Package}\n' | grep ^non-free
aptitude search '~i ?section(non-free)'
Section will be non-free/... for everything from the non-free path.
[Note] for gcc docs...
This documentation is licensed under the terms of the GNU Free
Documentation License, and contains invariant sections, so i... | List all software installed from particular component (non-free, contrib) |
1,412,351,566,000 |
We have the unattended-upgrades package upgrading our servers with security upgrades every Monday and it works great. Today though, it upgraded all of our servers with a new version of PHP5. Because we have moved the default PHP5-FPM configuration file, apt complains that the file has been moved, and what would we lik... |
I also want to keep original config files while doing automatic updates. You can add the following to /etc/apt/apt.conf.d/50unattended-upgrades
Dpkg::Options {
"--force-confdef";
"--force-confold";
};
See here for a good explanation of the options:
http://raphaelhertzog.com/2010/09/21/debian-conffile-configurat... | Unattended upgrades and modified configuration files |
1,412,351,566,000 |
I'm running Debian, namely:
# uname -A
Linux martlins2 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
and for some time I see some errors telling that some parts of some packages uses unknown compression while doing apt update. In particular, the cause of the issue lays in the middle of the dpkg... |
Debian’s dpkg package didn’t support zstd compression prior to version 1.21.18. Support was added just in time for Debian 12.
I’m guessing you’ve added a Ubuntu PPA; you shouldn’t use those with Debian.
| zst compression not supported by apt/dpkg |
1,412,351,566,000 |
Is there a way to use dpkg to view a changelog between different versions of a package?
If I wanted to know e.g., why 'passwd' was being upgraded in a recent update is there a way to use dpkg to see what changed?
$ dpkg -l passwd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf... |
dpkg does not provide any facility to read the changelog of a package.
you should extract the package and read the changelog
dpkg -X <package.deb> <folder>
then you can read the changelog using the dpkg-parsechangelog utility
dpkg-parsechangelog -l <folder>/usr/share/doc/<package>/changelog.Debian.gz
Since that's a ... | Use dpkg to view changelog |
1,412,351,566,000 |
I have installed the package geoip-bin using the apt-get command:
sudo apt-get install geoip-bin
and I wanted to know the command line command to use this package.
But when I try to list the files that the geoip-bin package installs, to try and find the executable file, it's not listed in the dpkg -S output
% dpkg -S... |
-L, --listfiles
dpkg -L package-name
| How can I list all files which have been installed by an APT package? |
1,412,351,566,000 |
Is there any way (dpkg, apt?) to get a package's sources and URL to repository, if available, in Debian ?
|
What about sudo apt-get source packageName? It installs the newest available source tree, when available, in the current working directory.
Check man apt-get for more details.
| Get package sources and repository link |
1,412,351,566,000 |
I have deleted some files around /var/lib/dpkg/, namely:
/var/lib/dpkg/status
/var/lib/dpkg/available
/var/lib/dpkg/info/*
I understand Debian uses these files to keep some information about installed packages. Now when I do apt-get update, I get following error:
Reading package lists... Error!
E: Could not open file... |
If you look at the purpose of /var as given in the Filesystem Hierarchy Standard, it says:
/var contains variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files.
Note that "transient and temporary" files are just one of the things it contains... | How to recreate /var/lib/dpkg/status? |
1,412,351,566,000 |
On my Kubuntu 14.4 (which has python 2.7.6 as standard) my python is broken after I tried to install python 2.7.10 after building from source from python.org with the help of How to install the latest Python version on Debian separately or upgrade?. I am not able to repair it with the standard commands I suspect that ... |
You have installed Python packages that are more recent than what your distribution provides. For example, you have python version 2.7.10-1 installed but your distribution only has version 2.7.5-5ubuntu3.
APT doesn't downgrade packages unless explicitly told to do so. So for example if you try to install a package tha... | Repairing python setup |
1,412,351,566,000 |
I am trying to install a 3rd party .deb package that I have installed before on Debian 8. But I cannot install on a fresh Debian 9 setup because I get the following error:
dpkg: dependency problems prevent configuration of parity:
parity depends on libssl1.0.0 (>= 1.0.0); however:
Package libssl1.0.0 is not instal... |
libssl1.0.2 and libssl1.0.0 are different packages, providing incompatible libraries; that’s why you can’t satisfy a libssl1.0.0 dependency using libssl1.0.2.
To satisfy your package’s requirements, I’d suggest adding the Debian 8 repositories to your configuration, since Debian 8 is still supported (so if necessary y... | How to convince dpkg that libssl1.0.2 is >= libssl1.0.0? |
1,412,351,566,000 |
I have a source package (foo) which produces two binary packages (foo-a and foo-b).
In version 2.0, file /etc/foo was moved from foo-a to foo-b. That causes apt upgrade to fail with:
$ sudo apt upgrade
...
dpkg: error processing archive /var/cache/apt/archives/foo-b_2.0_amd64.deb (--unpack):
trying to overwrite '/e... |
The correct (tm) solution to this is to fix the dependencies of foo-a and foo-b by fixing debian/control with:
Package: foo-b
Replaces: foo-a (<< 2.0)
Breaks: foo-a (<< 2.0)
Reference: https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-in-other-packages
However, If you are not the develo... | Is there an apt --force-overwrite option? |
1,412,351,566,000 |
I'm working with a Raspberry Pi B+ and Raspbian 5/5/2015 and some guides that are a few years old. I've got an external NTFS HDD hooked up to the Pi. Due to the articles age(s), common practices have changed, and it turns out that certain packages and features and functions are now built-in and/or automatic.
For ex... |
apt-cache showpkg shows detailed information about potentially installable packages. It does indicate whether the package is installed, kind of, but not in a very readable way:
Versions:
2:3.6.6-6+deb7u5 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages)
If the package w... | How to find out if a specific package is installed on Debian? |
1,412,351,566,000 |
I started an upgrade of my Kubuntu 12.04 system with this command, as usual:
sudo apt-get --show-upgraded dist-upgrade
I came back later and it had failed:
Preconfiguring packages ...
(Reading database ... 478306 files and directories currently installed.)
Preparing to replace ...
Unpacking replacement base-files ..... |
Your system is in a state which I think should not happen: you have the new version of the dependency initramfs-tools-bin in the installed state, but the old version of the dependency initramfs-tools in a half-installed state. I'm not sure whether the problem is that APT is letting the system get into a state where it... | dpkg: dependency problems prevent configuration of initramfs-tools |
1,412,351,566,000 |
Let's say I want to install mysql from a script without being asked any configuration questions like what root password I want to set by apt. I would then preset the debconf variables:
echo mysql-server-5.5 mysql-server/root_password password xyzzy | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_passw... |
You can inspect what gets stored in debconf using debconf-get-selections. This is useful if you have actually done the installation already.
Alternately, these settings are used in the package maintainer scripts. With the dpkg-deb command you have run, these are in the DEBIAN subdirectory of EXTRACTDIR.
As an example,... | How to find out the variable names for debconf-set-selections? |
1,412,351,566,000 |
I'm trying to install awesome 4.0. To install all the dependencies I ran sudo apt-get build-dep awesome. If I run make in my awesome directory there are some libs still missing:
$ make
Running cmake…
-- git not found.
-- asciidoc -> /usr/bin/asciidoc
-- xmlto -> /usr/bin/xmlto
-- gzip -> /bin/gzip
-- ldoc -> /usr/bin/... |
As mentioned by steeldriver, the package is not available until 16.10.
One option is to built it manually from source (github)
A Second option would be to get it from a 3rd party ppa
sudo add-apt-repository ppa:aguignard/ppa
sudo apt-get update
sudo apt-get install xcb-util-xrm
| No package 'xcb-xrm' found |
1,412,351,566,000 |
I was trying to install Ruby on my remote server. (This is a virtual machine (Debian) in a ESXi server.) I got this error:
$ sudo apt-get install ruby1.8
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or open... |
Your root filesystem (/) is mounted read-only as the /dev/disk/... line in /proc/mounts shows. The reason for this could be that a disk error was detected on boot (errors=remount-ro option) or subsequent I/O error.
Check the kernel logs for any errors with the dmesg command and look in /var/log/syslog or /var/log/mess... | Not able to lock /var/lib/dpkg/lock (read only) |
1,412,351,566,000 |
I ended up dealing with a software meant to be deployed using dpkg. The .deb package works fine on the test env but fail on staging. Both are running the same version of Ubuntu but I am not 100% sure of the rest of the configs. How to debug this dpkg issue further?
The installation fails like this:
sudo dpkg -i --debu... |
The package's .preinst script is failing for some reason.
To find out why, examine the script in /var/lib/dpkg/info/PACKAGENAME.preinst
If you want to see exactly which line the script is failing on, edit the .preinst script and add set -x immediately after the #! line. This turns on execution tracing in the script.
... | dpkg: new pre-installation script returned error exit status 1 |
1,412,351,566,000 |
I have followed instructions from their site. The command ls /usr/local/hdf5 returns
bin include lib share
But
dpkg -s hdf5
dpkg-query: package 'hdf5' is not installed and no information is available
Why?
I have downloaded from here
https://www.hdfgroup.org/HDF5/release/obtainsrc.html#conf
and then I have followed t... |
The actual name of the hdf5 installation package is "libhdf5-dev" (not "hdf5"). Running the following command should return package information.
dpkg -s libhdf5-dev
If that doesn't give any results, you can check for any hdf5 installation by doing:
dpkg -l | grep hdf5
| How to check if HDF5 is installed? |
1,412,351,566,000 |
I'm curious to understand how ~ is processed in a dependency by Apt or how it's defined for deb files (I'm not sure exactly where the syntax is defined).
I ran into it with respect to dependencies of the Ubuntu (Focal) meta package python3 which has the dependency constraint: python3.8 >= 3.8.2-1~ (see here).
I believ... |
Tildes in versions are described in the section of Policy on versions. Basically, tildes sort before anything.
Thus >= 3.8.2-1~ is satisfied by any version starting with 3.8.2-1, including versions with suffixes starting with a tilde themselves, such as 3.8.2-1~bpo (as would be used for backports), as long as there ar... | What does a tilde (~) mean at the end of a dependency requirement in a deb file or in apt? |
1,412,351,566,000 |
My binary depends on these boost libraries and respective packages:
NAME | PACKAGE:
--------------------------------------+-----------------------------------
libboost_serialization.so.1.55.0 | libboost-serialization1.55.0
libboost_thread.so.1.55.0 | ibboost... |
The dpkg -s command returns the status of installed packages. For example, on my system, if I run it for firefox which is installed and nedit which isn't, I get:
$ dpkg -s firefox
Package: firefox
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 94341
Maintainer: Clement Lefebvre <[email pr... | Check if all listed packages are installed in bash |
1,412,351,566,000 |
There are many packages which have grub in their names and part of the GRUB (the Grand Unified Boot Loader). The ones which are installed on my system are -
grub-common
grub-emu
grub-pc
grub-pc-bin
grub-theme-starfield
grub2
grub2-common
grub2-splashimages
I first looked at it to see whether it is a symlinke... |
In such cases you can find the relevant package by looking through the post-installation scripts:
grep /etc/default/grub /var/lib/dpkg/info/*.postinst
This reveals that the file is created by grub-pc.
| In Debian, which package is responsible for creation of /etc/default/grub? |
1,412,351,566,000 |
Essentially, I'm using this answer to have a non-interactive experience with application such as dpkg, apt and other ones that may depend on the former.
problem though is, is there any conflict between those two flags, when used together?
I'm asking because, as i understand it:
apt-get -o Dpkg::Options::="--force-conf... |
This is addressed in the dpkg man page:
confnew: If a conffile has been modified and the version in the package did change, always install the new version without prompting, unless the --force-confdef is also specified, in which case the default action is preferred.
confold: If a conffile has been modified and the ve... | Any possible conflict between using both --force-confold and --force-confnew with dpkg? |
1,412,351,566,000 |
I want to install MySQL 5.7 on Travis CI, which runs Ubuntu 12 virtual machines.
I'm willing to use the official MySQL APT repo:
wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
But the problem is, installing this package opens a... |
Courtesy @hbdgaf, this how-to put me on the right track:
export DEBIAN_FRONTEND=noninteractive
echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7-dmr | sudo debconf-set-selections
wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
sudo dpkg --install mysql-apt-config_0.2.1-1ubun... | How to configure the MySQL APT repo on Ubuntu, on a non-interactive shell? |
1,412,351,566,000 |
I don't use Windows all that often, but I've found my self in a position where I'm stuck in front of one quite a bit temporarily. So I've been investigating Cygwin. My question is dpkg available for Cygwin? My Google searches seem to show that it was at least at one point, but I can't find a package. If it isn't avail... |
An attempt to get dpkg working has been abandoned, according to THIS sourceforge page that was setup to investigate getting dpkg to work on Windows Cygwin.
Stick to a Virtual Box instance or SSH.
EDIT: If you are really interested, there is a huge thread about trying to get it work here.
| Is dpkg available for Cygwin? |
1,412,351,566,000 |
This is with reference to "sudo: apt-get: command not found." after removing some packages. This user managed to break his system by installing some packages from wheezy on a squeeze system - not sure why or how. In any case, he has at least two packages which are not fully installed, and are in the state iU (i.e. unp... |
From the dpkg man page
-C, --audit
Searches for packages that have been installed only partially on your system. dpkg will suggest what to do with them to get them working.
So dpkg -C (as user) may work. However, I can't test this since I don't have any broken packages.
| Listing Debian packages which are not fully installed |
1,421,928,404,000 |
In Linux distributions, some packages create user accounts.
How can I determine which package created a given user?
I want to know specifically for Fedora and Ubuntu, but answers for other distributions are welcome.
|
On Debian-based systems (including Ubuntu), packages create users using maintainer scripts, usually postinst. Therefore one way could be to grep through these scripts:
grep -R --include='*.postinst' -e useradd -e adduser /var/lib/dpkg/info/
This assumes, of course, that the postinst script hasn't been deleted (either... | How to find out which package a user belongs to? |
1,421,928,404,000 |
I just did an apt-get upgrade on my Debian 6 development server and noticed that a certain package named tinyproxy was upgraded. I have a particular interest in seeing precisely what changed in that package because modifying it to do some things that it currently does not do is on my list of things to do.
I know that ... |
You're looking for the package apt-listchanges. That will show you the Debian news and/or changelogs (its configurable) of the packages you're about to upgrade, and optionally ask for confirmation before upgrading. It can even open the changelogs in a browser, so you can click on links to bugs, etc.
Also, if you're us... | Can I determine what changed in an upgraded package using apt or dpkg on Debian 6? |
1,421,928,404,000 |
I'm trying to install Awesome's dependencies, specificall libxcb (using Ubuntu 16.04.1). What I did is run:
cd ~/Downloads
apt-get source libxcb
sudo apt-get build-dep libxcb
cd libxcb-1.11.1/
dpkg-buildpackage -us -uc
Is this the right procedure to build libxcb? Now I have a big list of *.deb files (see below). Whic... |
The way you built libxcb is OK, but as Julie Pelletier says you didn't need to build it from source.
The general approach in a case like this is to use apt-cache search; apt-cache search libxcb will list all the libxcb-related packages (and a few others which happen to mention libxcb) along with their short descriptio... | How to install libxcb |
1,421,928,404,000 |
I understand that a package has two components: config and data files. During package upgrade (i.e. security upgrade) data files can be overwritten, but config files should always stay the same. Also config files are usually in /etc and data in /usr. Sometimes, however, the distinction is blurred.
In my case, I have m... |
While wurtel's answer answers the question as phrased, considering the background in the question reveals that this is yet another case of a XY problem.
In this particular case, /usr/share/applications/icedove.desktop should not be modified in the first place, but a local configuration file which overrides the defaul... | Debian: prevent particular file from being overwritten during package upgrade |
1,421,928,404,000 |
I am installing packages on remote server, using ssh:
ssh root@my-host "DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get --quiet --yes install w3m"
even though I have set DEBIAN_FRONTEND=noninteractive, the installation gets stuck on following question, and I have to press enter manually:
Confi... |
This kind of configuration file change conflict is dealt with by dpkg, and you can force it to choose the default option using the --force-confdef option. Do heed the warning from the documentation though:
Warning: These options are mostly intended to be used by experts only. Using them without fully understanding ... | Force non-interactive "dpkg --configure" when using apt-get install |
1,421,928,404,000 |
I am running debian stretch and following this guide for building package from source for debian.
Sometimes building process takes hours , when I run dpkg-buildpackage -rfakeroot again , it starts building from scratch.
dpkg-buildpackage --help does not show any option to resume.
How can I resume package building ... |
To continue a build that was interrupted for some reason, you can call the appropriate targets of debian/rules directly:
debian/rules build
will compile the sources, then
fakeroot debian/rules binary
will run the installation and prepare the packages.
| How to resume package building in debian? |
1,421,928,404,000 |
I have created a package of zsh 5.0.7 from sources and now I can install it successfully but when I try to remove it I get this:
$ sudo dpkg -i zsh_5.0.7_amd64.deb
Selecting previously unselected package zsh.
(Reading database ... 177638 files and directories currently installed.)
Preparing to unpack zsh_5.0.7_amd64.... |
In general, this warning is completely harmless and normal. When dpkg is removing (or trying to remove) a package, it removes all files and directories which were created as part of that package installation. Now, suppose there are some files in a directory that is a candidate for removal in such a scenario, and dpkg ... | After creating a .deb: dpkg:warning while removing, directory /usr/local/bin not empty so not removed |
1,421,928,404,000 |
A trivially conflicting package foo can be made to work with bar, by running dpkg --force-conflicts -i foo. But eventually it's time to upgrade, and 'apt-get' objects:
% apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f in... |
Since OP asked for a list of commands (with which to change the relevant metadata of the package) in the comments to Gilles' answer, here it is:
# download .deb
apt download parallel
# alternatively: aptitude download parallel
# unpack
dpkg-deb -R parallel_*.deb tmp/
# make changes to the package metadata
sed -i \
... | Set apt-get options to tolerate harmless 'dpkg --force-conflicts' kludge? |
1,421,928,404,000 |
Let's say I have an installed, working and up-to-date system, and want to verify that all package-installed files on it are the same as those packaged by the respective package maintainer.
In effect, I want a list of files that are somehow different between what I have installed "now" and what I would get if I were to... |
One way to accomplish this is to use the command debsums.
$ debsums <package>
Example
$ debsums xz-utils
/usr/bin/lzmainfo OK
/usr/bin/xz OK
/usr/bin/xzdiff ... | How to verify that package-installed files match originals? |
1,421,928,404,000 |
I know that apt-get source <package_name> gives you the source package. It contains a debian folder with a file called rules. If I understand it correctly, this file describes how the source package can be transformed into a .deb package, including which compiler flags should be used.
Two questions:
How do I get the ... |
The compiler flags used are a function of
the debian/rules file,
the package's build files (since the upstream author may specify flags there too),
the build system used (dh, cdbs etc.),
the default compiler settings.
To see the flags used you effectively need to at least compile the package:
debian/rules build
Try... | How to get the compiler flags that are used to build the binaries in a (.deb) package? |
1,421,928,404,000 |
There's a .deb software that doesn't have a .desktop file, I created that file. I want to create another package for that software, when the user installs it, I want the .desktop file to be generated automatically and placed in /usr/share/applications/
How to do so?
|
Sounds like all you want to do is extract your .deb archive, add your .desktop file and the rebuild the package. This is a fairly simple process. To extract:
dpkg-deb -R package.deb extract_dir
Note -R is a raw extract to get the control files as well. Next create /usr/share/applications/ if it doesn't already exist:... | How to automatically generate .desktop file? |
1,421,928,404,000 |
I am reading an Ubuntu 14 hardening guide and this is one of the suggestions:
It generally seems like a sensible idea to make sure that only users
in the sudo group are able to run the su command in order to act as
(or become) root: dpkg-statoverride --update --add root sudo 4750
/bin/su
I looked up the dpkg-st... |
The purpose is to prevent ordinary users from running the su command (su is similar to sudo, the difference being that sudo executes one command, su starts a new session as a new user, which lasts until that user runs exit)
The default mode of su is 4755 or rwsr-xr-x, the "s" means that the command is set-UID (which m... | How to harden su with dpkg-statoverride? |
1,421,928,404,000 |
I've created a deb package which installs a service.
On our embedded devices, I want this package to automatically enable the service. On our developer workstations, I want the developers to systemctl start foo manually (it's a heavy service, and so it just consumes resources if run all of the time on a desktop envir... |
You can use systemd presets to affect whether a systemd service will default to being enabled or disabled at installation time.
The Debian presets default to enabling all services as they're installed, so you only need to ship a preset to the development workstations (the default behavior matches what you want to happ... | Conditionally enabling systemd files through Debian packaging |
1,421,928,404,000 |
This question appears to be addressed properly in several questions and other
places easily found with Google, but I don't find the solution satisfactory
for the reasons explained below. But just for completion, I've included some
relevant links:
https://askubuntu.com/questions/138284/how-to-downgrade-a-package-via-ap... |
How to install a specific version of GCC in Kali Linux?
GCC 6 is available on kali linux it can be installed as follow :
apt install g++-6 gcc-6
To switch between gcc6 and gcc7
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 1 --slave /usr/bin/g++ g++ /usr/bin/g++-7
update-alternatives --install /usr/... | How to install a specific version of GCC in Kali Linux? |
1,421,928,404,000 |
I am writing a debian package and need to prompt the user for some textual details(default password, etc), as well as some one-of-many choices("Pick one of the following: foo, bar"). Will shell scripts run in dpkg use read or select correctly, or do I need another solution? If so, please point me to a quick guide abou... |
You should not use read, select or dialog yourself but use debconf instead which supports readline, dialog, gtk and even web frontends. This is much more flexible than your own system. If you are using dh for building your system it will automatically use dh_installdebconf and you'll just have to place your template i... | Prompting for input in post-install script in dpkg |
1,421,928,404,000 |
I'm on Debian and I want to re-partition my drive and reinstall. Is there an easy way to restore all currently installed packages after a fresh installation?
I'm thinking of doing it by making a backup app list:
#generate list of installed packages
dpkg -l | awk '{ print $2 }' ORS="\n" | tail -n +6 > reinstallList.txt... |
According to the Debian wiki, you should run this command before the reinstall:
dpkg --get-selections > /backup/installed-software.log
Then, after reinstall, run this:
dpkg --set-selections < /backup/installed-software.log
apt-get dselect-upgrade
Obviously, you should replace /backup/installed-software.log with the ... | Re-installing apps after a fresh install? |
1,421,928,404,000 |
I'm having a package management problem:
At some point, I must have interrupted an update or something, because the bluez package has broken. I've tried removing and/or reinstalling, but I get nothing but errors. I'm unable to perform any operations with apt as long as this package is broken.
Output from my attempt to... |
I haven't encountered this message before, so I guess it's bluez-specific. Have you tried the reinstall the message is suggesting?
apt-get install --reinstall bluez
You might also try using dpkg to install/configure the bluez package from the apt cache. Look for the bluez package in /var/cache/apt. Install like this ... | debian: Remove or reinstall package in a very bad inconsistent state |
1,421,928,404,000 |
I'm running elementary OS 0.2 (based on Ubuntu 12.04) and starting today I'm seeing a weird error when attempting to install/upgrade packages. Just now for example I did a:
sudo apt-get update
which worked fine, followed by a:
sudo apt-get upgrade
which attempted returned this:
Setting up idle-python2.7 (2.7.3-0ubun... |
I found a way to solve this issue by simply removing the idle-python2.7 package:
sudo apt-get remove idle-python2.7
as stated here.
| 'ImportError: No module named _struct' error when managing packages |
1,421,928,404,000 |
Let’s say I install a package using dpkg:
sudo dpkg -i package-name.deb
then without running the package binaries I just remove it:
sudo dpkg -r package-name
Is there anything harmful that can happen in this process?
For example, any malicious configuration script in the .deb file? What are other possible threats ... |
Yes, packages can contain “maintainer scripts” which are run before and/or after installation. You can see the scripts, if any, by extracting the control archive from the package:
dpkg-deb --ctrl-tarfile package-name.deb > control.tar
tar tf control.tar
or, if you know you want to extract the control archive’s conten... | Can installing an unknown deb package using sudo dpkg be harmful? |
1,421,928,404,000 |
sudo dpkg --install some_stuff_all.deb
Install the packages in the file some_stuff_all.deb.
sudo dpkg --remove some_stuff_all.deb
Displays the message:
dpkg: error: you must specify packages by their own names, not by quoting the names of the files they come in
...
Type dpkg-deb --help for help about manipulating *.... |
To get information about a package file:
dpkg -I some_stuff_all.deb
This gives you all available information about the file, including Package:, Version:, Depends:, Description:, etc.
See dpkg --help for a summary of options, and man dpkg for details. Note that -I is actually a dpkg-deb option, but dpkg runs dpkg-de... | How does one list the packages in a .deb file? |
1,421,928,404,000 |
Some days ago I downloaded a .deb file that does not have a descriptive name and I want to know which version it is before executing dpkg -i.
I do not know if the same package also comes in a repository, so I am looking to extract this information from the actual file, rather than querying the repository's database.
|
To get lots of information about the package use -I or --info:
dpkg-deb -I package.deb
dpkg-deb --info package.deb
To only get the version use, -f or --field:
dpkg-deb -f package.deb Version
dpkg-deb --field package.deb Version
| How may I obtain information on a specific Debian package (.deb) file? [duplicate] |
1,421,928,404,000 |
I am running Debian jessie stable in order to understand how the .deb package interacts with the system. What is the correct way to extract and install a packge_name.deb without the command dpkg?
|
You can unpack .deb files using the ar command (since .deb files are ar archives).
ar x file.deb
will start the process. That will give you three files,
debian-binary
control.tar [or similar]
data.tar [or similar]
The last two contain control metadata and then the actual package files and are tar archives (which ma... | How to extract and install .deb without the command dpkg? |
1,421,928,404,000 |
I am trying to find a good method to find the repository for each package that was stored on my system that can be easily parsed.
Backstory:
I have Debian wheezy systems and have setup the wheezy-backports repository, so I could get a newer version of a package. I made a mistake with my patterns in the pinning config... |
The following python script parse the output of apt-cache policy and generate the list of all installed packages with the output format
Package<tab>Version<tab>Origin<tab>Suite
apt-show-origins
#!/usr/bin/env python
# Should be written with python-apt
# but for now parse the output of apt-cache policy
import os
imp... | Find source of all installed packages on Debian based systems |
1,421,928,404,000 |
I'm creating a Debian package that has a few dependencies not found in the official repositories. Simply specifying these other packages as dependencies doesn't cut it, as their installations alone involve running apt-get update and adding source repositories (which aren't mine) to /etc/apt/sources.list.d.
More: one o... |
I don't think its possible directly.
But somehow the user got your package to install—and apparently not from your repository, since it hasn't been added yet. So the first workaround I'd suggest would be to do things the normal way: have the user add the repository (or give the user a simple shell script), then instal... | Is it possible to have a Debian package pre-install script run apt-get commands? |
1,421,928,404,000 |
In rpm-based systems, we can easily see if there is a signature associated with an rpm file:
rpm -qpi <rpm-file.rpm> | grep -i signature
For .deb files, we can see the package information but it doesn't include the information of whether a signature is associated or not:
dpkg-deb -I uma-18feb-latest.deb
Is there a w... |
dpkg-sig --list <deb-file.deb>
will list any items in the file which look like a signature, without verifying the file. This will list the role of any signature in the file; e.g.
$ dpkg-sig -l vuescan_9.7.50-1_amd64.deb
Processing vuescan_9.7.50-1_amd64.deb...
builder
$ dpkg-sig -l zstd_1.4.8+dfsg-2.1_i386.deb
Proces... | How can I check if there is a signature associated with a deb package? |
1,421,928,404,000 |
With dpkg -l I can see all installed packages on debian.
But I have installed some packages from jessie and some from stretch.
How do I find out, which packages are installed from stretch?
|
apt-show-versions, from the eponymous package, will tell you what release your installed packages are from.
apt list --installed will also tell you this, without needing to install a new package.
| list all packages from which distribution |
1,421,928,404,000 |
Is there an analog for dpkg -S <file>, but for configuration files, such as /etc/samba/smb.conf? Which are generated on dpkg-reconfigure, I guess.
user@host:~$ dpkg -S /etc/samba/smb.conf
dpkg-query: no path found matching pattern /etc/samba/smb.conf
|
dpkg -S will only find configuration files which are shipped directly in packages, not those which are generated by maintainer scripts (or other tools). There’s no general solution for the latter, but looking for references to the file in /var/lib/dpkg/info is your best bet. In this instance:
$ grep -rl /etc/samba/smb... | Which package provides a certain configuration file? |
1,421,928,404,000 |
Possible Duplicate:
How to find out which (not installed) package a file belongs to?
The wish is to install hd-idle on a bare Debian 6.0.6 installation.
For installation the hd-idle documentation instructs:
Run "dpkg-buildpackage -rfakeroot"
However trying to run that command results in:
root@debian:/tmp/hd-id... |
Go to http://packages.debian.org/, go to the bottom of the page (titled Search the contents of packages), select your version of Debian, enter dpkg-buildpackage as the keyword and click search. That will tell you which package to install to get the dpkg-buildpackage command.
| How to fix dpkg-buildpackage: command not found? [duplicate] |
1,421,928,404,000 |
I tried to install jdk/jre:
ben@ubuntu:~$ sudo apt-get install openjdk-7-jre-headless
However, I got this message:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I cannot get git to ... |
Do you have the GUI package manager/or update manager programs running? If so there's a conflict, simply close those programs down and your command line should work.
| I cannot install new packages: "Could not get lock /var/lib/dpkg/lock" |
1,421,928,404,000 |
I'm kinda curious. And if it is possible, then how?
|
Yes, dpkg is an AUR package for a long time. Yet, it is not meant to install .deb packages. Instead it is meant to build .deb packages on Arch (i.e. packages that then can be installed on Debian, Mint, Ubuntu, etc).
On the other hand, installing a .deb package on Arch is not hard. Let's take slack (a chat program t... | Can dpkg or apt be installed on Arch Linux? |
1,421,928,404,000 |
I would like to build Debian package from source, using dpkg-buildpackage. I have downloaded package source:
apt-get -t wheezy-backports source gnucash
Inside the file gnucash-2.6.9/configure I see, that there are options which can be selected/deselected when building the package.
Debian maintainer has already made t... |
OK, take a look at gnucash-2.6.x/debian/rules.
Find the line that says override_dh_auto_configure: (line 23 in my case), and add your overrides below it.
In your case --enable-aqbanking is already there (for wheezy-backports at least), so simply delete it.
More info can be found in the man page.
Update: In addition, ... | building Debian package with non-standard options |
1,421,928,404,000 |
(trimmed) dpkg -l output on a recent debian bullseye (v11.3) machine:
SE Name Version Arch Description
ii bind9-host 1:9.16.27-1~deb11u1 amd64 DNS Lookup Utility
ii bind9-libs:amd64 1:9.16.27-1~deb11u1 amd64 Shared Libraries used by BIND 9
^^^^^
Question: why does t... |
Adding one more line would reveal the relevant field:
$ grep -A7 "Package: bind9-libs" /var/lib/dpkg/status
Package: bind9-libs
Status: install ok installed
Priority: standard
Section: libs
Installed-Size: 3734
Maintainer: Debian DNS Team <[email protected]>
Architecture: amd64
Multi-Arch: same
bind9-libs is marked “... | Debian: "dpkg -l" name field sometimes includes arch/abi, sometimes not. Why? |
1,421,928,404,000 |
I am trying to run the command dpkg --configure -a in order to fix dpkg so I can apt-get programs.
I get the error addgroup: The group 'systemd-journal' already exists as a system group. Exiting.
This apparently corresponds to the following bug.
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1475094
Is ther... |
If the group is empty, you could just remove it and then run your dpkg command. Since the command itself, apparently, creates the group, after running it everything should be fine. So, first:
sudo delgroup --only-if-empty systemd-journal
And then
sudo dpkg --configure -a
Once that has run, make sure the group was re... | Warning because addgroup tries to create an already existing user group |
1,421,928,404,000 |
I noticed a weird antipattern in some CI scripts I've taken over, which basically boils down to this code checking whether a particular file is present in a package:
dpkg --contents some.deb > contents.txt
grep --quiet foo contents.txt
I tried the obvious refactor of dpkg --contents some.deb | grep --quiet foo, but I... |
dpkg uses tar to list the package contents. When tar can’t process an archive in full, it indicates an error, and that’s what dpkg is reporting. Both commands expect that an inability to complete their task is an error, and act accordingly.
You can avoid this by ensuring that grep reads all its input before exiting:
|... | Is `dpkg --contents` unable to handle SIGPIPE? |
1,421,928,404,000 |
On (Ubuntu) Debian how do I use dpkg -i to install packages on a computer with no internet. I have all the packages and dependencies together all in one folder. I don't need the internet to download anything.
For example, If chrome and all of it's dependencies are together in one folder the command dpkg -i *.deb wan... |
I am writing Ubuntu specific answer, it should work on Debian as well(never used Debian).
So if you have a .deb file with all it's dependencies,
First move these dependencies to /var/cache/apt/archives/
directory.
Now execute sudo dpkg -i <your_deb_file>. After this command your .deb file will be half installed(unc... | How to use dpkg -i to install package and dependencies where dependencies are all in the same folder |
1,421,928,404,000 |
There are two suggested configuration options to install post-install hooks into Debian's apt/dpkg system: DPkg::post-invoke(1) and DPkg::post-invoke-success(2).
For me, only post-invoke seems to work and I could not find any documentation about post-invoke-success. Can someone enlighten me about differences, if they... |
There are three different hooks called Post-Invoke or Post-Invoke-Success, all managed by the apt tools:
DPkg::Post-Invoke, which is invoked after every execution of dpkg (by an apt tool, not manually);
APT::Update::Post-Invoke-Success, which is invoked after successful updates (i.e. package information updates, not ... | What's the difference between DPkg::post-invoke and DPkg::post-invoke-success? |
1,421,928,404,000 |
I'm working under Raspbian (for RaspberryPi):
Linux version 3.18.14-v7+ (root@vagrant-ubuntu-trusty-32)
(gcc version 4.8.3 20140106 (prerelease)
(crosstool-NG linaro-1.13.1-4.8-2014.01 - Linaro GCC 2013.11) )
nb : I'm connecting to the pi from my laptop using a ssh session.
When trying to solve this problem her... |
This is the complete solution for my problem
install locales
sudo vim /etc/apt/sources.list
-
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ wheezy main contri... | Can't install locales [closed] |
1,421,928,404,000 |
I'm trying to upgrade some package in a VM, but I dpkg refuses to apply the upgrades due the following:
dpkg: error processing /var/cache/apt/archives/ifupdown_0.7.5ubuntu2.2_amd64.deb (--unpack):
unable to make backup link of `./sbin/ifquery' before installing new version: No such file or directory
Preparing to repl... |
This means that for some motive, you can't move the binary in the file system:
sudo mv /sbin/ifquery{,.bk}
[sudo] password for braiam:
mv: cannot move ‘/sbin/ifquery’ to ‘/sbin/ifquery.bk’: Input/output error
You should check the filesystem for problems or ask your system administrator.
| What means "unable to make backup link of /binary before installing new version: No such file or directory"? |
1,421,928,404,000 |
On one of my machines dpkg is unable to finish installing/configuring grub, only giving the error message:
subprocess installed post-installation script returned error exit status 255
Full output:
# dpkg --configure grub-pc
Setting up grub-pc (1.99-27+deb7u3) ...
device node not found
device node not found
device no... |
So, at the time of writing, you brilliantly narrowed down your problem to grub-mkconfig and wonder how to debug it.
grub-mkconfig is a shell script that basically build your grub.cfg configuration file by executing every script in /etc/grub.d. There is a set -e command at the beginning of grub-mkconfig, meaning "stop ... | Debugging dpkg configure failure with grub |
1,399,366,660,000 |
I'd like to output a list of all, currently not installed, packages (they are visible in Synaptic for example) using only shell commands.
How do I do this?
|
aptitude search '!~i'
See the Search Term Reference in the aptitude user's manual for details.
| How to list currently not installed packages? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.