date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,593,441,682,000
I executed dpkg-query -l libgtk2.0-0 libgtk-3-0 to find out the version of those packages, and I got the following output. Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name ...
As you say, From that description, ii would mean the desired action is install but that the package is installed. This means that the desired state for the package is “installed”, and that the current state of the package is “installed”. Since both match, no change is needed. The action column doesn’t specify action...
What does "ii" in the first colums of the output of dpkg-query mean?
1,593,441,682,000
I just did an upgrade on my Debian install. After updating my sources.list from Jessie to Stretch I did an apt-get update, apt-get upgrade and apt-get dist-upgrade. While some packages failed to update the machine is still in a usable state. However 33 have failed to install properly starting with xserver-xorg-core. ...
The error message /var/lib/dpkg/info/keyboard-configuration.config: 5: /etc/default/keyboard: Syntax error: Unterminated quoted string suggests there’s a problem with your /etc/default/keyboard file. Looking at the contents shows that you have an extraneous quote at the end of XKBOPTIONS; remove that and everything s...
apt commands fail because No file name for keyboard-configuration:amd64
1,593,441,682,000
When a conffile is modified, dpkg gives you a prompt asking what to do: Configuration file '/etc/apache2/mods-available/ssl.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : i...
It appears you can not; the diff options are hardcoded in dpkg's source. From src/configure.c: /* Child process. */ char cmdbuf[1024]; sprintf(cmdbuf, DIFF " -Nu %.250s %.250s | %.250s", str_quote_meta(old), str_quote_meta(new), command_get_p...
Specify diff options for dpkg's config file prompt
1,593,441,682,000
I know how to extract a package, make some minor changes, and repackage it. I wanted to know if there was anything special you'd have to do if you were to repackage a deb package so it was compatible with an older OS version. For example, I want to upgrade xyz package on Ubuntu 12 but xyz package is only available on...
You'll get unmet dependencies if you want to take package from newer system and install on older one. You can check dependencies in the control file in Depends: section. You can try to resolve dependencies by upgrading them, but by doing so you can break other applications which depend on old versions. If you'll mana...
How do you repackage a deb package for an older OS?
1,593,441,682,000
I am running Debian Wheezy, which is the current stable Debian distribution. In my /etc/apt/sources.list, I have something like the following: deb http://ftp.de.debian.org/debian wheezy main deb http://ftp.de.debian.org/debian-security/ wheezy/updates main When I run apt-get update and apt-get upgrade, I would expect...
Debian updates main mirror sometimes. That update contains all security updates from last release and some not-security updates. For example last minor update was 12 Oct and that update contains dpkg improvements
Debian: package updates in stable distribution
1,593,441,682,000
If I'm writing a Debian package maintainer script (such as a pre-install script) for a package I create, how can I make the script determine if it is supposed to be running in non-interactive mode (e.g. if apt-get install was invoked with -y, and things like that)?
If your maintainer scripts need to interact with the user running the installation, the recommended way to proceed is to use debconf; see Conditional file and directory installation in Debian Packages for pointers. This might seem complicated but it does bring a number of benefits — not only does debconf handle non-in...
Check for non-interactive mode in Debian package maintainer scripts
1,593,441,682,000
After an upgrade on Debian Bullseye, I got this error : Errors were encountered while processing: python3 python3-ldb apt-listchanges lsb-release python3-mediainfodll caja-mediainfo python3-distro python3-talloc:amd64 python3-apt python3-debconf samba-libs:amd64 yelp libsmbclient:amd64 mate-user-guide g...
The python3 package file in your apt cache seems to be corrupted; run sudo apt clean sudo apt reinstall python3 to force a re-download. If that still fails, download the package file manually and install it: wget http://deb.debian.org/debian/pool/main/p/python3-defaults/python3_3.9.2-3_amd64.deb sudo dpkg -i python3_...
Debian Bullseye - dependency problems
1,593,441,682,000
I'm trying to clean up some C code and build a Debian package. The makefile was set to use -Wall but debuild uses -Wpedantic . As it happens this was "a good thing" as the code was casting data pointers into function pointers (not allowed in ISO C and seriously dangerous ...on some architectures data and code may be i...
I looked at the compiler output for switch/case/default where a large range is used; and I compared it to the same code implemented in if/else if/else (source code). It yields the same exact binary code, aside from names (Godbolt's compiler explorer), when used with the GCC 12.2 as default in debian 12, and with the r...
Allowing just switch ranges in gcc
1,593,441,682,000
I can't seem to work out how to build GNU Hello on Ubuntu 22.04. To reproduce, start a Docker container using docker run --interactive --rm --tty ubuntu:22.04, then run the following: apt-get update apt-get install -y debhelper-compat dpkg-dev wget cd "$(mktemp --directory)" wget http://archive.ubuntu.com/ubuntu/pool/...
Yes, you need to extract the main tarball too: tar xf hello_2.10.orig.tar.gz cd hello*/ tar xf ../hello_2.10-2ubuntu4.debian.tar.xz dpkg-buildpackage apt-get source hello will take care of downloading and extracting the source package for you (if the source repositories are configured), and apt-get build-dep will tak...
How to build GNU Hello .deb?
1,593,441,682,000
There is a package I build from source, following this recipe: echo "deb-src http://archive.ubuntu.com/ubuntu focal main" >> /etc/apt/sources.list echo "deb-src http://archive.ubuntu.com/ubuntu focal-updates main" >> /etc/apt/sources.list apt update apt source package apt build-dep -y package cd package/ dpkg-buildp...
Here's an old question on the topic: How to cross-build a Debian package. tshepang's answer there points out to use dpkg-buildpackage --host-arch=amd64 instead of --target-arch=. This is counterintuitive to me according to the widely used definitions of host and target when cross-compiling, but the nomenclature for De...
Cross-compiling a Debian package from source
1,593,441,682,000
I am running Devuan 3.1.1 32-bit (Debian based) with kernel 4.19 on an old PC and trying to install proprietary Nvidia drivers. The latest version of the driver for the FX 5200 is version 173.14.39. I have tried two methods for installing Nvidia drivers on my machine. The first is using the .run installer file directl...
I have the misfortune to be very well versed in this issue. The first, and correct, solution, is to use nouveau free driver. Legacy means legacy, and EOL means EOL While you didn't list your system specs or Xorg version, here's the basic cutoff points of 173.14.39 (the last of the 173.xx.xx series): Last X.org versio...
Installing Legacy Nvidia Drivers for FX 5200
1,593,441,682,000
I'm trying to build *.deb packages into a chroot. When building the first package - bash, there were difficulties. I build packages using debootstrap and chroot. I install debootstrap: sudo debootstrap stable /stable-chroot http://deb.debian.org/debian/; I install the packages I need: apt -y install wget dpkg-dev de...
The bash build needs a working /proc and /dev, so you need to bind-mount them into your chroot before entering it. Instead of doing all this manually, you’d probably find it easier to use a tool such as pbuilder or sbuild which will take care of all this for you. To get started with pbuilder, install it, run sudo pbui...
Error while building *.deb package in separate build environment
1,593,441,682,000
I created a simple .deb package with fpm. The package is very basic and it simply runs a docker-compose file (see my other question here for package description). I tried to specify that the package needs docker and docker-compose with: fpm \ -s dir -t deb \ --deb-use-file-permissions \ -p diagnosticator-0.1.0-1...
Package dependencies are on package names, not binaries. For docker, you can determine the appropriate package name by running dpkg -S /usr/bin/docker For docker-compose, you might need to create your own package first, or switch to the relevant package. You might also want to install your package using apt install ....
fpm .deb package docker dependencies
1,593,441,682,000
I am trying to figure out if an application I installed can be trusted, based on the following output. I hope this is the correct platform to get some advice on the matter! I installed this package (pdfc-gui) from here with: sudo dpkg -i pdfc-gui-21.4.225.deb and in the installation I see that it adds/updates ssl cert...
The program calls this in its postinst script: update-ca-certificates -f 2>/dev/null The -f flag: -f, --fresh Fresh updates. Remove symlinks in /etc/ssl/certs directory. So the output matches that of a call to update-ca-certificates. Note that there were other triggers, so that the certificates update might have be...
Why is this package (pdfc-gui) updates my ca-certificates, on Ubuntu 16.04?
1,593,441,682,000
I'm using Kali Linux and I'm getting the error dpkg: dependency problems prevent configuration of messengerfordesktop: messengerfordesktop depends on libappindicator1 | libappindicator | libappindicator-gtk3 while writing this: sudo dpkg -i messengerfordesktop-2.0.9-linux-amd64.deb I tried sudo apt-get install -f b...
libappindicator-gtk3 isn't available in Kali Linux. libappindicator1 and libappindicator have been removed from Kali repositories. You can install Messenger from snapcraft: sudo apt install snapd sudo snap install core sudo snap install messenger-collabee sudo snap install slack --classic sudo snap install discord I...
dpkg dependency problem messengerfordesktop depends on libappindicator1 | libappindicator | libappindicator-gtk3
1,593,441,682,000
I follow the steps in this post to create a custom repository, but I want to rename it. I can't find any way to do it. Can you please help me?
Sounds like you want to know how to rename a package. There are two ways to do this. In this example, I'm going to change the name of cowsay to mysay From source Download the debian (or ubuntu) source package, rename the files as appropriate, replace the old name with the new name in the debian/* directory (that's...
How to rename a local APT repository?
1,593,441,682,000
I've downloaded and burn a yocto raspbian image, I found out I've no apt nor dpkg but only pkg-config and wget, how can I install them? Or at least how could I install dpkg in order to install apt in the aftermath using wget and dpkg?
Raspbian includes dpkg and apt; what you’ve downloaded presumably isn’t Raspbian, but a Raspberry Pi Yocto image. The latter kind of image isn’t designed to be modified, and you shouldn’t try to add dpkg to your image. Put another way, if you want Raspbian, make sure you download a Raspbian image.
How can I install dpkg and aptitude on Raspbian?
1,593,441,682,000
I am trying to install a new app doing upgrading my 32bit zorin os 15 lite system. I keep getting these messages in the terminal: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process...
Obviously your lock (/var/lib/dpkg/lock-frontend) indicates that either another process (maybe the update process) is just using dpkg and tells you that you cannot use it. If the problem persists you need to find out which process is holding it. Find that out: lsof /var/lib/dpkg/lock-frontend That process is responsib...
I have a terrible problem with downloading apps and upgrading my 32bit Zorin OS 15 lite, can someone please help me?
1,593,441,682,000
Typing apt-get upgrade returns the following error: dpkg: error processing package gdb (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: gdb E: Sub-process /usr/bin/dpkg returned an error code (1) I tried a ...
The error message gives some indication of what’s going on and how to fix it: package is in a very bad inconsistent state; you should reinstall it before attempting configuration The problem is that the package state as described in dpkg’s “database” (the files under /var/lib/dpkg/info doesn’t match what’s on the s...
Error in dpkg when executing apt-get upgrade ( most of the commands )
1,593,441,682,000
So you might have noticed on typing apt-get update there comes an error sometimes that says E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denie...
The problem in your example is not about locking, it is a permission error. apt is trying to read/write to a file (/var/lib/apt/lists/lock) that it does not have permission to read/write to. Look at chown, file ownership, and what is a user (on the Unix system). Incidentally this file is used for locking (to prevent ...
I want to understand how locking works in Linux [closed]
1,593,441,682,000
I am following the commands below--modified from the answer here--in hopes of building a .deb package of sstp-client for my Kali Linux build. I eventually want a username/password-authenticated SSTP VPN option in the Gnome network-manager GUI. I'm running these commands on the Kali Linux build, which is based on Debia...
On debian testing, you can install sstp-client from this git repository. Attention Debian Users: Debian/Ubuntu users can now use my personal PPA to download and install the network-manager-sstp and sstp-client project via launchpad. Using apt (bionic suite for debian testing): sudo apt-key adv --keyserver keyserver....
Building sstp-client on Kali Linux from Source: dpkg errors
1,593,441,682,000
I want to install pdftk on my development machine where I have installed (multiple versions of) Java with SDKMAN!. In order to fulfill the dependency on default-jre-headless of pdftk-java, I created a simple file for equivs-build: Section: misc Priority: optional Homepage: https://github.com/reitzig/sdkman-equivs Stan...
David Foerster’s pdftk-java package depends on default-jre-headless (>= 7) | java7-runtime-headless; to satisfy that, you need a package with a versioned “Provides” (for default-jre-headless), or a package providing java7-runtime-headless. (I think the versioned dependency on default-jre-headless is incorrect; the def...
apt ignores virtual package provided equivs-created package
1,593,441,682,000
I'm trying to install openntpd (sudo apt-get install openntpd) and I'm getting: Preparing to unpack .../openntpd_1%3a6.0p1-2_amd64.deb ... Warning: unable to find a suitable fs in /proc/mounts, is it mounted? Use --subdomainfs to override. dpkg: error processing archive /var/cache/apt/archive/openntpd_%3a6.0p1-2_amd64...
It worked after running sudo apt-get purge ntp.
Can't install openntpd: "unable to find a suitable fs in /proc/mounts, is it mounted?" "pre-installation script returned error exit status 1"
1,593,441,682,000
I am running Ubuntu server 16.04.3. I enabled the automatic installation of security updates. This morning, the server was turned off (not sure why, it was expected to be running). After restarting it, I tried to update it using apt-get dist-upgrade. It gives me the following error: Fetched 351 kB in 0s (1 760 kB/s) ...
Disk image corruption is rather unusual... Given the number of packages you need to reinstall, and the fact that many essential packages are affected, I think it’s time to back any files you need from the VM somewhere else, and create a new VM from scratch. That is extremely likely to take much less time than attempti...
dpkg error while upgrading: dpkg-preconfigure not found
1,593,441,682,000
I am trying to reduce the hard disk footprint of my Debian Stretch installation by automatically purgeing all packages that are: not essential packages and not needed by any essential packages (possibly even indirectly). An essential package is a package that has the Essential control field set. For example, init...
Turns out it's from the Important: yes field that init has (but, e.g., tzdata does not). $ dpkg -s init | grep Important Important: yes The message when trying to remove it is indeed confusing v. Essential: yes packages; Debian bug #826587 requests a less-confusing message. PS: You might want to take at look at the I...
Why is the same package sometimes essential and not essential?
1,495,854,617,000
I'm working on stripping a system to the least amount of files, packages, etc.. that it needs to provide the functionality I desire. I'm finding that a lot of packages I would like to keep have dependencies on packages which are completely unnecessary, and/or unwanted for the distribution I'm building, aside from the ...
deborphan attempts to solve this problem. aptitude does it for you behind the scenes, keeping track of which packages can be removed because they were pulled in merely to satisfy a dependency for a package which is no longer installed. debfoster advertises somewhat similar functionality, but I don't have practical exp...
Easy way to determine what what functions from a package are used by a dependent package?
1,495,854,617,000
After updating linux Mint kernel to 4.10.0-14-generic virtualbox is not working anymore. I tried to run "mobprobe vboxdrv" modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.10.0-14-generic Then following several webpages I tried reconfiguring the dkms: sudo dpkg-reconfigure virtualbox-dkms ------...
Solved the issue by moving the virtual machine files to a safe location (in order to protect the virtual machines) and then uninstalling completely all virtualbox related packages. Then I downloaded the deb package from oracle's website and installed it.
dpkg-reconfigure virtualbox-dkms failure
1,495,854,617,000
I am looking and using a github repo. which has a debian directory and debian/rules file which can be used to build the package/tool into a debian package. Using lintian I was able to get some warnings which upstream would probably fix in sometime. I heard some cool things about check-all-the-things and while it has ...
Just run it in the package source folder: check-all-the-things You'll probably want to tee that to a log file, the output is very verbose. The defaults are safe enough...
How to use check-all-the-things with a .deb package?
1,495,854,617,000
I tried to install syncthing on Debian Jessie (i386 architecture) following these steps: curl -s https://syncthing.net/release-key.txt | sudo apt-key add - echo "deb http://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list sudo apt-get update At this point, apt-get fails with th...
You can specify the architecture for apt to use by modifying the source entry (adding [arch=architecture] or during installation (apt-get install package:architecture). For more information, please refer to Multiarch/HOWTO - Debian Wiki Since you are having trouble at the apt update stage, it is probably best to try m...
How to install a package from a repository which is missing some architectures? [duplicate]
1,495,854,617,000
By "alternatives" I mean (for the most part; see exception below) the "roles" corresponding to the files under /var/lib/dpkg/alternatives. These roles include awk desktop-background editor global-assembly-cache-tool haskell-compiler infobrowser java w www-browser x-window-manager zsh among many others. The one exc...
Virtual packages and the Debian alternatives system (which is where binaries come into play) are related but not the same. For packages, you can use apt-cache to find which (real) packages "provide" it: $ apt-cache showpkg awk Package: awk Versions: Reverse Depends: base-files,awk base-files,awk Dependencies: ...
How to find all the available packages (and executables) that can fulfill an "alternative"? [duplicate]
1,495,854,617,000
I downloaded the Linux beta .deb package of Unity3D from the official place with the official links. (I'm too lazy to recover the link and include it; it doesn't really matter anyways.) I ran sudo dpkg -i unity3d.deb, and the package installed. I don't want Unity, and now neither which nor sudo locate unity3d return a...
It seems that the package either isn't installed, or it's name is different than you expect. You can use --info option on .deb file to check proper name: dpkg --info unity3d.deb If you're concerned about contents and their locations, OSS or not, typically you can check them with --contents option: dpkg --contents uni...
Where did Unity3D just install?
1,495,854,617,000
I have some debian packages not located in my default debian directory. I know I can find the information of packages located in my default debian directory as follows: dpkg-query -W package-name Is there a way to find the details of a debian package not located in the default debian directory? (I tried searching fo...
you can use : dpkg --info package_name it will give you details like Architecture,Dependencies ,Version etc. for example dpkg --info teamviewer_linux.deb new debian package, version 2.0. size 43331378 bytes: control archive=1478 bytes. 1015 bytes, 17 lines control 695 bytes, 4...
Find Information about debian package located in a particular directory
1,495,854,617,000
I'd like to backup the package list(dpkg) of some remote computers to a backup server: all of them running Debian. I already configured the rsa key to login remotely as root on the other computers without authentication. How can I run a command like "dpkg --get-selections > file" on the remote computers to save the pa...
Put all your hostnames in a file, each on a separate line, then ... for h in $(cat <file>); do ssh $h dpkg --get-selections >/tmp/$h.dpkg; done
run remote command to save debian package list
1,495,854,617,000
Whenever I try to install them through the Software Center it will remain at 0% for hours. I instead attempted to install the application I needed by compiling it from source. I needed the build-essential package and tried to install it with apt-get. Now, it tries to install a bunch of dependencies, along with dropbox...
It doesn't. sudo apt-get install build-essential The following NEW packages will be installed: build-essential dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl There isn't nautilus-dropbox package in the list. Your problem is seen later: 0 upgraded, 7 newly i...
build-essential tries to install unrelated package nautilus-dropbox
1,495,854,617,000
Yesterday I attempted to upgrade my installation of the Textadept editor in my Linux Mint 13 ("Maya") LTS Xfce 32-bit system (based on Ubuntu 12.04 Precise). I get this via the WebUpd8 PPA, and have done for some time (this is pretty routine). However, I must have got a corrupted download (see various error code/log e...
Actually, is dpkg which thinks (rightly so) that your package isn't correctly installed, because the configuration was never done in first place (which is why it says "half-configured"). You must check your /var/cache/textadept directory (as stated in .postinst script), find and delete the package, so it downloads it ...
dpkg still thinks corrupted upgrade of Textadept pending - how to clean up?
1,495,854,617,000
I wanted to install bluefish editor but I got this error. This is not the first error I got involving packages. I installed Linux Mint 17 two days ago and every time after a reboot there is some kind of problem with packages. Anyone have an idea? user@username ~ $ sudo apt-get install bluefish Reading package lists....
I suggested (in comments) Can you download the bluefish-data binary deb package via apt-get download or aptitude download or just from a Debian web page and try installing it with dpkg -i? The poster replied: dpkg -i bluefish gave me this error dpkg: error: reading package info file '/var/lib/dpkg/available'...
E: Sub-process /usr/bin/dpkg returned an error code (2)
1,495,854,617,000
I've just made a debian package, when all the files are zipped together the size is 60 MB, however my .deb file made from the same directory is ~150 MB. Have I done something wrong or are there lots of overheads involved with .deb files, and if so would it be possible to get a brief run-down of what is added to the ra...
A .deb file is an ar archive with typically those files: $ ar tv apache2_2.4.6-2_amd64.deb rw-r--r-- 0/0 4 Jul 23 12:51 2013 debian-binary rw-r--r-- 0/0 7422 Jul 23 12:51 2013 control.tar.gz rw-r--r-- 0/0 179960 Jul 23 12:51 2013 data.tar.xz (the used compression can be gz, bz2 or xz). The ar archive is not co...
Debian package very large compared to zip file
1,495,854,617,000
after attempting sudo apt upgrade on a fresh install of parrot os, new kernel update is present but trying to boot into it from grub gives gives me a kernel panic. here is what i tried and with what errors ive been getting: The following partially installed packages will be configured: apache2 linux-headers-6.5.0-13...
Non-configured linux-image and linux-headers are solved by: Booting the previous kernel Removing dkms Upgrading the kernel Reinstalling dkms Building the rtl8188eus To solve the following error: dpkg: error processing package apache2 (--configure): installed apache2 package post-installation script subprocess retur...
kernel panic after after parrotOS upgrade
1,495,854,617,000
I'm using Ubuntu 18.04.6 LTS and when I use dpkg -l command, the result contains the following entries: ii gcc 4:7.4.0-1ubu amd64 GNU C compiler ii gcc-7 7.5.0-3ubunt amd64 GNU C compiler ii gcc-7-base:amd 7.5.0-3ubunt amd64 GCC, the GNU Compiler Collection ii gcc-8-base:a...
There are a number of toolchain packages, including the gcc suite, python and the llvm suite in Debian/Ubuntu for which multiple versions are packaged at once under different package names. This is done for various reasons including. It provides an "escape hatch" of temporarily reverting builds of a package to a prev...
Differences between gcc and gcc-X
1,495,854,617,000
I am blind to Linux, and I'm sorry if my question is too silly. So I have access to a Linux server but cannot install any sudo packages as I have no administration right. Thus, I thought I could install sudo dpkg locally and install whatever package I need afterwards. I have seen a few discussions here but could not ...
You can't do it the way you describe. See this thread for learn more: How to install program locally without sudo privileges?
How to install locally all sudo packages in my home directory? [duplicate]
1,495,854,617,000
First, to clarify the terminology: dependency <-> reverse dependency/dependent I have xvt installed on my headless RPI, and I can't figure out the reason why it's not getting autoremoved. $ sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, ...
Your apt-cache rdepends output suggests that nothing is keeping your xvt package installed, which is odd given your autoremove behaviour. In general, to figure out why a given package is being kept, the best tool is aptitude why: aptitude why xvt (you may need to install aptitude first). To list all the packages that...
How to list packages with no manually installed packages in the dependent tree?
1,644,626,522,000
I created a .deb package with fpm. The package is very simple as it simply runs a docker-compose over this docker-compose.yml file. The package is composed of 3 files: . ├── diagnosticator ├── diagnosticator.1 └── docker-compose.yml The permissions on diagnosticator are as follows: -rw-rw-r-- 1 enrico enrico 554 feb ...
Your diagnosticator script needs to be executable: run chmod 755 diagnosticator and build your package again.
run .deb package created by fpm
1,644,626,522,000
I try to cleanup a Debian system on which several packages are installed after multiple Debian upgrades, which belongs to different Debian versions. I.e. on a Debian Bullseye system, there are: libsodium18 (Stretch only) libsodium23 (Buster and Bullseye) installed (libsodium). Now, I do not need libsodium18 and want...
You can do this with aptitude, which supports searching for “obsolete” packages (i.e. packages which aren’t available from the configured repositories). aptitude search '~o' will list all such packages, and sudo aptitude purge '~o' will purge them (after telling you what it’s about to do and asking for confirmation)...
How to remove Debian packages which does not belong to current Debian version repository
1,644,626,522,000
I have tried (what a fool!) to install a newer version of glibc on Debian Stretch using dpkg and armhf .pkg files. After a candid sudo dpkg -i libc6_2.28-10_armhf.deb sudo dpkg -i libssl1.1_1.1.1d-0+deb10u7_armhf.deb I got a failed installation because of dependencies not met, and this must have lead to an inconsiste...
To fix this, you can downgrade: sudo apt install libc6/stretch libssl1.1/stretch Alternatively you could figure out what the missing dependencies are, but you might as well upgrade to Debian 10 entirely if you want to go down that route.
Resolve generated breaks, this may be caused by held packages
1,644,626,522,000
I am unable to run anything using apt or dpkg anymore. For instance, $ sudo apt install sl apt: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory I tried to install libzstd manually the following way: $ wget http://ftp.us.debian.org/debian/pool/main/libz/lib...
I solved it by copying over /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.4 installed on a different machine running my version of Ubuntu, and creating a symlinked file libzstd.so.1 to libzstd.so.1.4.4 in the same directory /usr/lib/x86_64-linux-gnu/.
libzstd was removed, now dpkg or apt no longer work
1,644,626,522,000
also i have tried apt autoremove but can't remove the older packages i keep getting dependency errors the commands i tried are: sudo apt-get install --reinstall grub sudo apt-get dist-upgrade sudo apt-get upgrade sudo apt autoremove but same error again Also when i run dpkg --configure -a i get this error dpkg: dep...
So, finally I solved this problem I found that while upgrading my kali machine It had an unfortunate shutdown which led to some missing files In linux-image 5.5.0 and caused the config problem. I simply removed all the info of Linux-image -5.5.0 from Dpkg and on tried apt-get update and apt autoremove and it solved th...
I am facing problem installing linux-image-amd64 i just upgraded my kali linux machine to 2020.2
1,644,626,522,000
For reasons regarding the other question I asked on here I want to purge the package xserver-xorg-v from my Linux Mint from the root shell. I get the following Error: dpkg -P xserver-xorg-v dpkg: error: unable to access dpkg status area: Read-only file system What is a command to find out which file system this is on ...
Deb packages are stored in /var/cache/apt/archives. Check there. But if you're in recovery mode it's not surprising that the archive directory is read only. I saw your other question and just answered it. Don't bother purging packages when you just need to move your xorg.conf file to default back to using the open sou...
Dpkg cant purge AMD-graphics package; read-only file system (Mint)
1,644,626,522,000
Recently, I was trying to update vbox-ext-pack on Debian, and it got stuck. It showed the license agreement and did not continue. I have looked at the solutions mentioned here, but none were satisfactory. How can I continue the installation without killing dpkg?
Use htop, ps, or a similar tool to find the PID of the vboxmanage process which is a child of dpkg. Run the following command to enter a y into the process' stdin: echo "y" | sudo tee /proc/PID_OF_VBOXMANAGE/fd/0 This works because the 0th file descriptor represents the stdin for the process. The sudo tee is needed b...
How can I continue a stuck update/install of virtualbox-ext-pack on Debian
1,644,626,522,000
The Problem: I have a raspberry pi that is running linux. The system date and time are incorrect. I want to install NTP on it so that I can fix the time. All the instructions I can find anywhere say to use 'apt_get' to install NTP. However it seem like I don't have apt installed on my pi since I get the message "apt-...
As you stated at the top of your question (under background), you are actually trying to install NTP. Your tutorials are most likely assuming you are using Ubuntu or other Debian-based distributions as it is the main Linux OS Set. Other comments also agree that you might be using the non-PIXEL desktop. If you are usi...
How can I install NTP? [closed]
1,644,626,522,000
I had issues with 1.2.x version of insync, so I googled for its website and I downloaded the deb file of the newest version for my 64 bit debian. dpkg couldn't install it, even setting the --force-all option, the output is ale@debian:~/Scaricati$ sudo dpkg --force-all -i insync_1.3.12.36116-wheezy_amd64.deb [s...
I solved in another way I found online: I removed insync entry in /var/lib/dpkg/status, did apt-get update && sudo apt-get upgrade again and everything started working fine back
insync messed up apt and I can't do apt-get update/upgrade
1,454,004,530,000
After trying to install an openvpn I've got this: apt-get became broken - unable to install/purge anything. I've got 2 versions of python install 2.7.1 and 3 (wondering if this could cause the conflict). EDIT: just to confirm /usr/lib/python2.7/dist-packages/ has apt_pkg.co, while neither python3 nor python3.2 has. M...
After reading the logs and some thinking I've found the source of the problem. I was following this tutorial to setup a LAMP-server. What a "nice" idea from author to remove /usr/bin/python and create new link to Python3 sudo ln -s /usr/bin/python /usr/bin/python3!! To bad this spoiled Package Management tool. Solutio...
/usr/bin/dpkg returned an error code (1)
1,454,004,530,000
dpkg --list | grep [0-9]\-jre-headless shows, rc openjdk-7-jre-headless:amd64 7u79-2.5.6-0ubuntu1.14.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless) rc openjdk-7-jre-headless:i386 7u79-2.5.5-0ubuntu0.14.10.2 ...
dpkg shown right information, the rc flags in its output meaning openjdk-7-jre-headless:i386 was removed but its configuration files wasn't. dpkg -l is actually front end for dpkg-query -l. You can read dpkg-query manual for more details.
dpkg --list not in sync with apt-get
1,454,004,530,000
On a clean install of Raspbian Jessie (Raspberry pi 2) an error occurs during the first attempt for upgrade: Preparing to unpack .../python-rpi.gpio_0.6.1-1_armhf.deb ... Traceback (most recent call last): File "/usr/bin/pyclean", line 31, in <module> from debpython import files as dpf EOFError: EOF read where o...
The actual cause was a faulty SD card with incorrectly implemented delete functionality, where deleting during upgrade changed other files as well.
"EOFError: EOF read where object expected" while installing python-rpi.gpio
1,454,004,530,000
I'm using an HP laptop and am seeing these messages: sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space w...
Since you’re not using a Raspberry Pi, you don’t need the raspi-firmware package; that’s what’s causing the errors. Run sudo rm /etc/kernel/postinst.d/z50-raspi-firmware sudo apt purge raspi-firmware You need to purge the package, not just remove it, to ensure that the various z50-raspi-firmware scripts are removed t...
dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfigured
1,454,004,530,000
Previously, I was getting this error when I merely tried to update. I believe this problem is related to the VLC PPA which has always been total and utter trash on Ubuntu. I had to actually remove a file that was under package control with rm in order to purge the *vlc* packages. Now, that I deleted that file, I was a...
The PPA is broken. It contains a version of vlc-plugin-video-output which Breaks: vlc-plugin-base (<< 3.0.0~rc1~20171206-1~) but the version of vlc-plugin-base in the repository has a lower version number (thanks to the extra ~ in 3.0.0~rc1~~git20171215+r73271+108~ubuntu17.10.1), so the packages can’t be installed! T...
What is the root cause of "E: Unable to correct problems, you have held broken packages."
1,454,004,530,000
I am trying to install our product in a NoTouchOS - a Raspberry Pi thin client OS. Given the fact it is a thin client, many libraries do not come out-of-the-box, such as apt, sudo... I am trying to manually install apt (Raspberry PI OS is debian based), by manually downloading the .deb package and running dpkg -i (dpk...
NoTouch OS is not based on Raspberry Pi OS or any other Linux distribution, so even if it has dpkg, installing packages from some other distribution is unlikely to end well. Anyway, NoTouch OS is designed to have an immutable base; that’s why you can’t write to /usr/bin: NoTouch images are immutable and can not be mo...
Manually installing packages in thin read-only distributions
1,454,004,530,000
I want to see all URLs that for packages that would be downloaded for apt install <pkg> without actually installing the package. Normally, the URLs can be extracted from the screen output after installing the package (as above). An example of a URL I want to list: http://cdn-fastly.deb.debian.org/debian/pool/main/n/nm...
apt install has a --print-uris option which does exactly that: $ apt install --print-uris libreswan Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcurl3-nss The following NEW packages will be installed: libcurl...
How to get all URLs for packages that would be installed for `apt install <pkg>` command
1,454,004,530,000
I was trying to install zoom using dpkg. Then, I got ibus error, so I installed the required package libxcb-xtest0. After that it required another package, but I forgot the package name. When I installed that package it suggested that I run sudo apt-get -f install. My bad for not reading, I ran the command and it unin...
For the benefit of anyone who will encounter this problem. Here's what I did to fix this daunting accident. Since my network-manager had also been removed there is no way sudo apt-get update, sudo apt-get update --fix-missing, sudo apt-get -f install nor sudo apt-get upgrade works no matter how many times I tried. Tha...
Ran `sudo apt-get -f install` and it removed almost everything including essential packages
1,454,004,530,000
my setup inxi -SMG System: Host: zaphod Kernel: 5.14.0-1-amd64 x86_64 bits: 64 Desktop: Xfce 4.16.0 Distro: Debian GNU/Linux bookworm/sid Machine: Type: Laptop System: ASUSTeK product: G750JX v: 1.0 serial: Mobo: ASUSTeK model: G750JX v: 1.0 serial: BIOS: American Megatrends v: G750JX.209 date: 11/18/2...
When you run into issues such as this, deleting old kernels and associated initramfs is the last thing you should do; instead, you can reboot into the previously-known working kernel. You’ve been bitten by bug #994860: the NVIDIA graphics drivers currently in testing don’t build with kernel 5.14, and the latter just m...
nvida drivers disapeared during night (poweroff/poweron) DKMS cannot be rebuild
1,454,004,530,000
I'am trying to use dpkg --get-selections to get a list of packages, but it is returning empty file. I'am using fedora.
dpkg is not a native Fedora/Enterprise Linux package management system. You need to use the equivalent yum or dnf commands to accomplish your task. This may give you the info you are looking for: yum list installed or dnf list installed
dpkg --get-selections returning empty file
1,454,004,530,000
I want to create a package for installation of the latest version of pgn-extract. I downloaded pgn-extract.tgz and decompressed the archive. But I can't think any further myself, because I have no experiences in the concept of building packages.
The easiest way (for some value of “easiest”) of going about this is to download the existing pgn-extract package and use that as a base: download the current source: wget ftp://ftp.cs.kent.ac.uk/pub/djb/pgn-extract/pgn-extract.tgz extract it: tar xf pgn-extract.tgz determine the version number: grep Version pgn-ex...
Create package of pgn-extract
1,454,004,530,000
So when i update kali linux with sudo apt update it shows this Get:1 file:/run/live/medium kali-last-snapshot InRelease Ign:1 file:/run/live/medium kali-last-snapshot InRelease Get:2 file:/run/live/medium kali-last-snapshot Release [7,354 B] Get:2 file:/run/live/medium kali-last-snapshot Release [7,354 B] Get:3 file:/...
You need to set your system’s date and time — your system’s date is in the past. On top of that, your storage seems to be broken.
Errors when unpacking binutils-common
1,454,004,530,000
I was upgrading my debian and after a while the package UDEV and DIRMNGR started to give me errors. I tried to download deb separately and try to fix the error but it doesnt seem to be a simple one. Is it possible to install these two package manually or fix the problem around dpkg? UDEV is returning: dpkg: error pro...
The problem with dirmngr has been reported as #848413 against dirmngr, which resulted in #848422 against dpkg where the bug actually is. To fix things, you can downgrade dpkg to the version in testing; if you have the appropriate entries in your repositories: apt-get install dpkg/testing should do the trick. The udev...
Dpkg returns odd errors
1,454,004,530,000
I'm trying to install a new 2016 open ssl package, but still see the old 2012 version, on Ubuntu 12.04 . I have a bunch of Ubuntu 12.04 dedicated machines that can't connect to the internet. They're all running openssl 1.0.1 from 2012 (when running: openssl version I get: OpenSSL 1.0.1 14 Mar 2012). I need the openssl...
So, the question is (if I understand it correctly) how one can find out the date of a package that has been modified by Debian, assuming the upstream version has not changed. The Debian/Ubuntu package version number for upstream (non-native) software always consists of two parts. The part before the dash, which is the...
trying a new 2016 openssl package, but still see the old 2012 version. Ubuntu 12.04
1,454,004,530,000
I want to be able to instrument and analyze at a prebuilt server and get a list of every file read. I would also like to determine which of those files were read by the kernel to execute a program, load a library or just read by an application. I thought it would be simple. SELinux by default deny, and in permissive m...
For my particular investigation I realized I don't really care why the file was read whether it was read as an executable or configuration file doesn't matter to me at this point. So I went back to find and found printf %T@ prints creation time and %A@ prints access time so if those are almost the same the file has no...
I would like to audit an Ubuntu server to get a list of all files executed and all files read by the kernel
1,454,004,530,000
I have installed a tool form source code with checkinstall. The installation was fine. That is the output: Done. The new package has been installed and saved to /opt/ntopng-2.0/ntopng_2.0-1_armhf.deb You can remove it from your system anytime using: dpkg -r ntopng When I tried to remove it with dpkg -r nto...
There are three directory trees involved when you build a program from source code: the source directory. It can be practically anywhere you choose. In your case, it appears to be /opt/ntopng-2.0. the object or build directory. This is where the compiler and other actions done by make will create all the object and e...
checkinstal - dpkg -r does not remove the package
1,454,004,530,000
Is there a way to have only a debian folder and build the package (downloading and unpacking the sources) automatic? I've seen uscan but it scans for new packages, it doesn't allow to have a fixed download URL string. Edit: I want to have a folder for every package and inside only the debian folder and I don't know ho...
The question, if I understand it correctly, is: Given just a debian/ directory, i.e. a directory containing just the Debian packaging files for a software package, is there a way to use those packaging files to download and unpack the sources for that software package? The target get-orig-source in debian/rules can ...
How can I made a Debian ports like repo?
1,454,004,530,000
I was upgrading my Kali Linux VPS using standard sudo apt update and later sudo apt upgrade commands while I encountered an error: Sub-process /usr/bin/dpkg returned an error code (1). I'm quite fresh Kali user, therefore I don't know why this error happened? Apart from standard Kali installation, I have XFCE desktop ...
Purge the package sudo apt purge powershell-empire Reinstall the package sudo apt install powershell-empire ... installed succesfull
Kali Linux - dpkg error while upgrading system. Error processing package powershell-empire (--configure):
1,454,004,530,000
I had a KL2016 laying around and installed it on virtualbox, installed, then the problems started after apt-get install && apt-get upgrade && apt-get dist-upgrade This is the error I get The following additional packages will be installed: vlc-bin The following NEW packages will be installed: vlc-bin 0 upgraded,...
Had the same issue with the same scenario. I had to purge the package mentioned, in this case: vlc-nox. sudo dpkg -P vlc-nox And then run install again. sudo apt-get install -f Should work after that.
"trying to overwrite '/usr/bin/cvlc', which is also in package vlc-nox 2.2.1-5+b1"
1,454,004,530,000
I'm currently learning about dpkg and apt, and I can see that the repository of e.g. ubuntu is structured in the following manner: Under the dists directory, we have a list of dists-suites such as focal, focal-updates, focal-security etc. Under each of these, we have a hierarchy of main, multiverse, restricted and uni...
Most of this is addressed in the detailed description of repositories in the Ubuntu wiki. You should care if you care about different levels of support, and different licenses: Component Supported by Support duration License main Canonical Five years (LTS) Free / open source restricted Third-party provider ...
Should I care about main, restricted, multiverse universe?
1,454,004,530,000
According to dpkg-query manual page: For example this will list all package names starting with “libc6”: dpkg-query -l 'libc6*' When I try it on Debian 10.5: $ dpkg-query -l 'libc6*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pe...
dpkg-query only looks at /var/lib/dpkg/status by default, and that only contains information about packages which are currently installed or were installed in the past. To see all the available packages, you can add the --load-avail option: dpkg-query --load-avail -l 'libc6*' but that relies on /var/lib/dpkg/availabl...
Why dpkg-query -l with a wildcard does not list all possible packages?
1,454,004,530,000
I need some online service that gives me all existing source packages in Debian. A source package is something like this: https://packages.debian.org/source/stretch/wireshark It contains several binary packages.
The same recipe as given in answer to your previous question works here too: the list of “source” sections in the various suites has an “All source packages” entry which leads to a page listing all the source packages, as HTML or as compressed text.
How do I get a list of all existing Debian source packages of all architectures online?
1,454,004,530,000
root@kali:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 0 B/587 kB of archives. After this operation, 0 B o...
The important error message is dpkg: error processing package tk8.6-blt2.5 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration You need to reinstall that package: apt install --reinstall tk8.6-blt2.5
dpkg error when running sudo apt-get upgrade [duplicate]
1,454,004,530,000
I was trying to install a program via terminal. But suddenly my computer was shut down because electricity was going off. Later while I was trying to install any program using terminal, it gave me this error: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. Now wha...
It seems to some packages didn't configured correctly. To fix it: $sudo dpkg --configure -a If it doesn't work try this: $sudo apt-get install -f then again $sudo dpkg --configure -a I think, when you search this problem on Google, you can find a lot of solutions that well-explained.
dpkg was interrupted [closed]
1,454,004,530,000
Debian 10 sudo wget -O protonvpn-cli.sh gives wget: missing url. sudo protonvpn-cli -connect gives command not found I have not changed anything in any of the computer files. I do use a firewall and Tor. I use protonvpn everyday with no problem, but today, problem. Also, I can usually set correct time with dpkg-rec...
Googling for protovpn linux install leads to this page, which clearly says the command should be sudo wget -O protonvpn-cli.sh https://raw.githubusercontent.com/ProtonVPN/protonvpn-cli/master/protonvpn-cli.sh So no, you haven't used sudo wget -O protonvpn-cli.sh to download it, because, as the error message says, i...
Why am I getting these error messages? [closed]
1,334,958,379,000
On my Ubuntu-Desktop and on my debian-server I have a script which needs to be executed each minute (a script that calls the minute-tic of my space online browsergame). The problem is that on debian derivates cron is logging to /var/log/syslog each time it executes. I end up seeing repeated the message it was execu...
Make the line this: * * * * * root /usr/local/sbin/mycommand.sh > /dev/null 2>&1 This will capture both STDOUT (1) and STDERR (2) and send them to /dev/null. MAILTO You can also disable the email by setting and then resetting the MAILTO="" which will disable the sending of any emails. Example MAILTO="" * * *...
How do I completely silence a cronjob to /dev/null/?
1,334,958,379,000
I'm getting a lot of mail in my root user's mail account. This appears to be mostly reports and errors from things like cron scripts. I'm trying to work though and solve these things, possibly even have them be piped to some sort of "dashboard" - but until then how can I have these messages go to my personal e-mail ac...
Any user, including root, can forward their local email by putting the forwarding address in a file called ~/.forward. You can have multiple addresses there, all on one line and separated by comma. If you want both local delivery and forwarding, put root@localhost as one of the addresses. The system administrator can ...
Can I change root's email address or forward it to an external address?
1,334,958,379,000
I am a computational scientist, and I run a lot of lengthy calculations on Linux. Specifically, I run molecular dynamics (MD) simulations using the GROMACS package. These simulations can take days or weeks, running on (for example) 8 to 24 cores. I have access to several nodes of a cluster, which means that at any ...
Jobs submitted to the at daemon will send any output to you from stderr and stdout upon completion. It can also be configured to send mail even if the job has no output. It also has the benefit of running without a controlling terminal, so you don't have to worry about the effect that closing your terminal will have o...
Is there a program that can send me a notification e-mail when a process finishes?
1,334,958,379,000
This is the contents of the file /etc/aliases on my Debian (Wheezy) server, as it is: # /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: t I noticed that, by default, my server ...
The /etc/aliases file is part of sendmail. It specifies which account mail sent to an alias should really be delivered to. For example, mail to the ftp account would be sent to root's mailbox in the configuration you show. Multiple recipients can be specified as comma-separated lists, too. Redirecting mail to users i...
Understanding /etc/aliases and what it does
1,334,958,379,000
When I try to log in to gmail with mutt, it flashes a quick Webalert with a url, something like accounts.gmail.com or something. It's too quick for me to see or copy it. Then it says Login failed. Then I get an email from Gmail saying: Google Account: sign-in attempt blocked Hi Adam, We recently blocked a sign-in a...
I finally got it to work by enabling Google 2-step verification and using an app-specific password for mutt. More detail: I enabled 2-step verification on my Google account, which means that when I log in to Google, I have to enter a pin number from either a text or from the Google Authenticator app. Then I had to get...
Gmail blocking mutt
1,334,958,379,000
I have problem with postfix on debian after upgrading from squeeze to wheezy. Postfix was configured to sign messages using dkim-filter. Before update, everything was working flawlessly, now it fails on connection with service (tcp or unix sockets). I thought that maybe it was because of debian switch to opendkim, so ...
Check if opendkim is running. (I assume it is as you saw the socket file.) Did you configure opendkim? The configuration file is /etc/opendkim.conf. You need to update the file to match your site/domain and dkim.key path. Add postfix to opendkim group If opendkim.sock permission is as follow $ ls -l /var/run/opendki...
postfix/smtpd: warning: connect to Milter service unix:/var/run/opendkim/opendkim.sock: No such file or directory
1,334,958,379,000
When I open up my terminal it says "you have mail", anyone has any idea of why? I am running OS X, but since it too is based on Unix and relies on files such as bashrc, bash_profile etc. I thought somebody here might know, and I'm not sure it's a platform specific problem!
It sounds like something has sent mail on (and to) the machine using the local mail exchanger. Most likely the email is an automated message from some installed package. Once you log in, type mail on the terminal to read and (presumably) delete the relevant mail. (Inside mail, use ? to find out what the commands are.)...
How to remove "You have mail" welcome message
1,334,958,379,000
I really like the idea of Mutt, reading mail in the terminal. I'm not really pleased with some inconsistencies and the IMAP handling. I set about trying to find some alternatives to Mutt, but I can't seem to find any. What alternatives to the Mutt e-mail client exist for the Linux terminal?
The obvious answer is Alpine, which used to be Pine, but was freed by the University of Washington. Pine is non-free software, Alpine is free software. Alpine is quite similar to Mutt, but Mutt is generally considered to be more powerful and flexible. The current active branch of Alpine is a fork called Re-Alpine, sin...
Are there any alternatives to Mutt?
1,334,958,379,000
I can't find any documentation on how postfix stores email. Where is it stored, and in what format? I'm using Ubuntu server 11
Probably /var/mail/[username] or the more traditional /var/spool/mail/[username] The normal format, called "mbox", uses a line that starts with "From " to indicate the start of each message - this is one reason why many email clients will change "From " in the body of the message to ">From ". You can also configure i...
Where does postfix store email?
1,334,958,379,000
Is it possible in Mutt to search for specific mail content using built-in functionality? Or, as a last resort, how can I configure grep to be used in Mutt? The documentation only mentions the search and limit functions, which only search headers.
search and limit can also actually search inside messages, depending on the search patterns you give. From the Patterns subsection of the Mutt reference: ~b EXPR messages which contain EXPR in the message body =b STRING If IMAP is enabled, like ~b but searches for STRING on the server, rather than downlo...
Search for mail content with Mutt
1,334,958,379,000
I've had a cronjob working for about a fortnight without any problems. Then last night I checked I didn't get the email that I usually get. I went to the terminal to try send myself an email, I got the following error: mail: cannot send message: process exited with a non-zero status I haven't changed anything with ...
I have get the same problem in an Ubuntu 14.04 server. And I find error message in /var/log/mail.err, which said: postfix/sendmail[27115]: fatal: open /etc/postfix/main.cf: No such file or directory Then I just reconfigured postfix and solved this problem. sudo dpkg-reconfigure postfix
mail: cannot send message: process exited with a non-zero status
1,334,958,379,000
Is it possible to include an attachment with sendmail? I am generating the following emailfile.eml files with the following layout From: Company Name <[email protected]> To: [email protected] CC: [email protected] Subject: Generated Output Mime-Version: 1.0 This will be the body copy even though it's terrible I am ...
Posting the solution that worked for me in case it can help anyone else, sorry it's so late. The most reliable way I found for doing this was to include the attachment as base64 in the eml file itself, bellow is an example of the eml contents. Note 01 : the base64 for the file comes from running the base64 command on ...
Can sendmail include an attachment?
1,334,958,379,000
While mutt has set sort = threads to show threaded, "conversation" style messages, it doesn't display one's own replies in the threads. Instead, you have to change to the Sent folder to see your own messages. Is there any way to display one's own replies where they belong inside threads?
I found that notmuch-mutt has some of the behavior I'm looking for. It defines a macro that looks at message-ids and can create a virtual folder to show an entire threaded conversation regardless of where each message lives. Out of the box it only works on search results. I'm not sure if the same behavior can be appli...
How can I configure mutt to display my replies within threads?
1,334,958,379,000
On my laptop, I have set up a cron that performs a weekly job. If there is something to report, I would like to get an e-mail for it. Right now I am using KMail as MUA which is able to read mail from the Maildir directory at ~/.local/share/local-mail. Thus, I want local mail to be delivered to that folder (with a Mail...
Since I could not find an existing, small program, I decided to write my own one. Originally, I came up with: #!/bin/bash # Simple sendmail # filename per spec at http://cr.yp.to/proto/maildir.html rand=$((RANDOM % 1000)) msgname=$(date +%s).P$$R$rand.$(hostname | tr '/:' '\057\072') # Safety measure: do not overwrit...
Minimal MTA that delivers mail locally (for cron)?
1,334,958,379,000
I'm receiving "You have mail" messages and according to How to remove “You have mail” welcome message I should read my mail with mail. However I cannot find the command in my system (Ubuntu 10.04 server). What do I need to install?
On Debian and derived distributions, you can use the apt-file command to search for a package containing a file. Install apt-file (apt-get install apt-file) and download its database (apt-file update, Ubuntu does it automatically if you're online). Then search for bin/mail: apt-file -x search 'bin/mail$' With the com...
What program do I use to check mail?
1,334,958,379,000
I am using the following command to create messages on the fly, and send them: echo "Subject:Hello \n\n I would like to buy a hamburger\n" | sendmail [email protected] It seems that when you send the information from a file, by doing something like: sendmail [email protected] mail.txt Then sendmail sees each line a...
Your echo statement should really output newlines not the sequence \ followed by n. You can do that by providing the -e option: echo -e "Subject:Hello \n\n I would like to buy a hamburger\n" | sendmail [email protected] To understand what is the difference have a look at the output from the following two commands: ec...
What is the format for piping a message into sendmail?
1,334,958,379,000
Which Linux tools help to backup and restore a IMAP mail account including all mail and subfolders? I expect disconnects for large IMAP accounts because of ressource limitiations on the server risk of an interruption increases with the duration. The software should be able to reconnect and continue the job after a...
A 7 year old question, which I've searched for now, and there are a few answers, most of are spot on. But I feel at least one is missing, and there is probably room for more: Timeline of answers: Back in 2014 Mehmet mentioned imapsync This is probably still the most focused solution maintained out there, as this is a...
Backup and restore IMAP mail account with (open source) Linux tools
1,334,958,379,000
Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS command but executing the same command from server B throws me this error (Both servers are RHEL) mail: invalid option -- r Usage: m...
Behold the confusing history of mail, nail, mailx. Briefly, mail is the older program, mailx (formerly nail in some implementations) is a newer version , with an extended mostly-but-not-totally-compatible interface. mailx is still quite old, created around 1986 and standarized as part of POSIX in 1992. There are sev...
Difference between mail and mailx? [duplicate]
1,334,958,379,000
How should one open .eml files in linux ? I'm not sure if mutt can handle it ? UPDATE I worked it out partially , by creating a new mailbox: mkdir -p a/{cur,tmp,new} And place the eml file in a/cur , I could read it with: mutt -f But that's not exactly what I want yet
mutt doesn't seem able to open individual messages. What you can do is convert the .eml file into an mbox folder containing a single message. This basically involves adding a From line at the top, which can be done using formail -b: formail -b < themessage.eml > themessage.mbox This can then be opened within mutt usi...
Opening .eml files with mutt
1,334,958,379,000
I have set up a backup script to back up world data on my Minecraft server hourly using cron, but because the worlds being constantly edited by players, tar was telling me that files changed while they were read. I added --ignore-command-error to the tar in the script and that suppresses any errors when I run it manua...
Cron will attempt to send an email with any output that may have occurred when the command was run. From cron's man page: When executing commands, any output is mailed to the owner of the crontab (or to the user specified in the MAILTO environment variable in the crontab, if such exists). Any job output can also...
Stop cron sending mail for backup script?
1,334,958,379,000
I am a graduate student and a relative Linux novice. This question is a sort of spin-off of my earlier question. My institution has a Ubuntu Linux cluster. I am just a user; I do not have sysadmin permissions, and I certainly do not have the expertise to be a sysadmin! My question is, how do I find my local mail sp...
Mail spools are typically under here: /var/spool/mail/$USER Where $USER is your username. For example on my Fedora Linux system: $ ls -l /var/spool/mail/ total 1908 -rw-------. 1 root root 1943163 Jul 13 12:00 root -rw-rw----. 1 rpc mail 0 Dec 18 2010 rpc -rw-rw----. 1 saml mail 689 Jul 12 19:38 saml Mai...
How can I find my local mail spool?
1,334,958,379,000
I get the error while running a script which tries to send emails. send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol send-mail: warning: inet_protocols: configuring for IPv4 support only postdrop: warning: inet_protocols: IPv6 support is disabled: Address family no...
You don't have IPv6 configured in your OS's network stack, but your mailer (presumably postfix) is configured to use IPv6. Since there is no IPv6 for your mailer to use, it's warning you that it's only going to use IPv4. From the postfix readme: if you see error messages like the following, then you're running Linux ...
"IPv6 support is disabled" warnings
1,334,958,379,000
How can I only receive emails from cron if there are errors? In the overwhelmingly vast majority of cases, the tasks will run just fine - and I truly do not care about the output. It is only in the rare case of a failure that I want/need to know. I have procmail available - but am not sure if what I'm describing is po...
As you are not caring for the output, you can redirect the STDOUT of a job to /dev/null and let the STDERR being send via mail (using MAILTO environment variable). So, for example: ... ... [email protected] ... ... * * * * * /my/script.sh >/dev/null will send mail when there is output only on STDERR (with the STDERR)...
Disable cron emails unless there are errors?
1,334,958,379,000
When I view a message in the pager mutt displays the time in the Date header in UTC rather than my local time zone. The index view displays the local time correctly. I found this old mailing list post that describes how to get the local time to display in the status bar at the bottom of the screen, but this still does...
In your .muttrc add the following line: set display_filter="exec sed -r \"s/^Date:\\s*(([F-Wa-u]{3},\\s*)?[[:digit:]]{1,2}\\s+[A-Sa-y]{3}\\s+[[:digit:]]{4}\\s+[[:digit:]]{1,2}:[[:digit:]]{1,2}(:[[:digit:]]{1,2})?\\s+[+-][[:digit:]]{4})/date +'Date: %a, %d %b %Y %H:%M:%S %z' -d '\\1'/e\"" This will change the Date: he...
How do I configure mutt to display the date header in my local time zone in the pager?
1,334,958,379,000
I can send email from my gmail account by ssmtp in Linux now. But how can I attach files to the email?
To send an attachment, you need to encode the message using MIME. You could use Mutt mutt -s SUBJECT -a ATTACHMENT_FILE_1 ATTACHMENT_FILE_2 -- EMAIL_ADDRESS < MESSAGE_FILE or mpack mpack -s SUBJECT -D MESSAGE_FILE ATTACHMENT_FILE EMAIL_ADDRESS See also: How do I send a file as an email attachment using Linux comman...
How can I send attachment with ssmtp in Linux?