date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,592,034,953,000 |
I tried to upgrade from fedora 25 to fedora 26.
I followed the following commands, as explained in the journal
sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=26 --allowerasing
sudo dnf system-upgrade reboot
When running the last command, the system... |
From your DNF log, the initial problem is disk space:
Error Summary
-------------
Disk Requirements:
At least 2459MB more space needed on the / filesystem.
and then from today:
Error Summary
-------------
Disk Requirements:
At least 359MB more space needed on the / filesystem.
which is closer. :) Then I think ... | Can't complete upgrade from fedora 25 to fedora 26 |
1,592,034,953,000 |
While upgrading my system from Fedora 35 to Fedora 36,
I first ran
sudo dnf upgrade --refresh
And then,
sudo dnf system-upgrade download --releasever=36
But it is giving rise to this error:
Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N... |
Uninstall the package, do the upgrade, then reinstall:
sudo rpm -e VirtualBox-6.1
Upgrade.
Install VirtualBox from here or better yet install their repo to /etc/yum.repos.d/ and then sudo dnf install VirtualBox-6.1.
| Error while upgrading from Fedora 35 to Fedora 36: VirtualBox requires libvpx.so.6()(64bit), but none of the providers can be installed |
1,584,874,164,000 |
I just tried to upgrade my system from Debian Jessie to stretch.
First I changed /etc/apt/sources.list to:
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main
deb http://ftp.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.debian.org/debia... |
I traced the problem back to a manual installation of python3.5.
After manually removing it (rm -r /usr/local/python*) as described in this bug, the dist-upgrade worked out well.
| Unmet dependencies upgrading to stretch [closed] |
1,584,874,164,000 |
Upon performing an upgrade from Ubuntu 17 to Ubuntu 18.04 LTS, my PC was in standby mode, thereby interrupting the last 1/4 portion of the upgrade. When trying to boot in Grub loader: "Advanced Options"; "Linux 4.7.2", the machine loads the drive and asks for password. Then the screen just goes blank. If I boot into 4... |
Try the following steps in this order:
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
# only continue if the above results in zero packages left to configure.
sudo apt-get dist-upgrade
| Ubuntu 18.04 LTS only boots with Recovery Mode with Linux 4.7.2 After Upgrade |
1,584,874,164,000 |
I do a lot of software testing and that requires me to build many different projects from source. I've recently upgraded to Fedora 33 from 31, and essentially, I have a group of issues that involve either not being able to run software that I had previously built due to "missing" dependencies, and/or when I try to bu... |
Compiling any non-trivial piece of software from source can be a complex task, although nowadays there's quite a bit of automation to hide much of the details. But when something goes wrong in the process, you'll need to be able to understand the process to effectively troubleshoot it.
Unfortunately, it seems to me th... | What types of things break regarding building of native software when upgrading versions of Fedora, and what are some solutions? [closed] |
1,584,874,164,000 |
I'm trying to upgrade Debian from stretch to buster but there are two packages with dependencies the package manager cannot solve (see upgrade output):
uget: Somehow the package manager has old dependencies (it searches for libcurl3 instead of libcurl4 as it should) despite having run apt update several times.
virtua... |
According to your logs, uget was removed; it should be possible for you to re-install the Debian 10 version now.
To remove virtualbox-ext-pack, you’d usually need virtualbox; unfortunately, because of the stretch-backports’ version’s dependency on Python 3.5, it can’t easily be installed in Debian 10. To work around t... | Package error while upgrading debian stretch to buster |
1,584,874,164,000 |
on Debian Bullseye (11) I recently have run into some dead endpoints when I run apt dist-upgrade after an update, see my sources list below. I have tried to resolve with --fix-missing and I have run apt clean... Any ideas?
I have looked at the site, http://deb.debian.org/debian/pool/main/, and I can confirm the direct... |
Your apt update is either too old or didn’t complete successfully; the current Debian 11 version of glibc packages is 2.31-13+deb11u2, not 2.13-13.
Note that your sources.list is missing the Debian 11 security repositories:
deb http://security.debian.org bullseye-security main contrib non-free
deb-src http://security.... | Issue with sources, 404 on upgrade |
1,584,874,164,000 |
I understand that it is generally recommended to always upgrade Debian sequentially. For example upgrade Debian Jessie (8) to Stretch (9) and then to Buster (10). But I couldn't find any clear instructions on how to do this exactly.
Is it sufficient to edit APT's source-list files (/etc/apt/sources.list and files unde... |
The release notes explain how to go about each upgrade, and as you say, each upgrade needs to be performed in sequence, following each release’s upgrade notes. The Debian 10 release notes mention this explicitly:
Direct upgrades from Debian releases older than 9 (stretch) are not supported. Please follow the instruct... | How to do multiple sequential Debian distribution upgrades? |
1,584,874,164,000 |
I'm currently upgrading one of my Debian 9/KDE machines and have around 1000 packages being held back after running sudo apt-get upgrade -> should I run sudo apt full-upgrade, sudo apt-get dist-upgrade, sudo apt-get install [~1000 packages] (how?) or something else?
Here it says:
New versions of currently installed p... |
As the release notes say, the next step after running
apt-get upgrade
(section 4.4.4) is to run a full upgrade with
apt full-upgrade
(section 4.4.5). This should resolve the conditions which resulted in the packages being held back with the minimal upgrade, notably by removing obsolete packages and installing new de... | How to resolve many packages being held back after "apt-get upgrade" during Debian 10 upgrade? |
1,584,874,164,000 |
Following my Debian upgrade from Wheezy to Jessie, I wanted to upgrade to Buster while I'm at it.
I have updated my sources.list file to use "buster":
cat /etc/apt/sources.list
deb http://ftp.fr.debian.org/debian/ buster main contrib non-free
Then I did an apt-get update && upgrade then dist-upgrade, which failed ... |
Your VPS is a container on OpenVZ, running a kernel which you can’t upgrade (it’s not inside your VPS). You’ll have to ask your provider how to proceed, starting with whether Debian 10 is supported at all. See Why is my CentOS 7.4 on kernel 2.6.32?.
apt-get doesn’t support rolling upgrades back. It might be possible t... | Cancel failing apt-get upgrade |
1,584,874,164,000 |
I'm about to upgrade from Debian 10 to 11.
During this step, and like when I do common apt-get upgrade or dist-upgrade, I'm expecting to receive a lot of questions: "Do you want to replace or to keep your configurations files?"
And having little knowledge (or absolutely no, sometimes) about the goals and the effects o... |
Most of the time, keeping your current configuration is the best option - you generally want an upgrade to be providing the same functionality in pretty much the same way, and you generally don't want to lose any hand-crafted configuration changes. That's why it's the default.
It's extremely rare for an upgraded prog... | During any upgrade, and even upgrading my Linux major version, should I reply: "replace configuration files" or "keep them" when I'm asked for? |
1,584,874,164,000 |
I have a Debian 8.11 server and I'd like to upgrade it to Debian 9 first and to Debian 10 afterwards.
I did the following:
apt-get update
apt-get upgrade
apt-get dist-upgrade
All finished with no errors and if I repeat the commands above they say that there are 0 packages to be upgraded. Thus I assume that it went we... |
You need to update your “sources” so that they refer to stretch rather than jessie:
sudo sed -i s/jessie/stretch/ /etc/apt/sources.list
Once that’s done,
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
will upgrade to Debian 9.
After rebooting, you can repeat the process, replacing stretch with bu... | Debian dist-upgrade does not upgrade to anything higher than 8.11 |
1,584,874,164,000 |
Originally my system was on 8.0 and now it's 8.6 but this latest version does not support all playonlinux requirements to run 86x_64x applications, then I'd like to know if it's possible to safely do a downgrade to my old version 8.0.
Ps: I did nothing with the repositories except adding jessie-backports to sources.li... |
You should use 8.6 which is 100% compatible with 8.0. The jessie-backports repo is the one which is not fully compatible, because they're packages from the unstable release called Stretch.
To force downgrade all your packages to Jessie, first make sure you have a rescue disc available. Then create a file: /etc/apt/pre... | How to do a downgrade in debian after doing "apt-get dist-upgrade -t jessie-backports" |
1,584,874,164,000 |
I earlier had RDP access to a remote machine (a typical physical desktop PC) using which I launched a sudo apt dist-upgrade inside a GUI gnome-terminal. Since then I have lost the RDP connection and only have SSH[1]. Since there was no 'assume yes' in the apt command, inspecting cat /var/log/dist-upgrade/screenlog.0 o... |
I'm not entirely familiar with apt, but the name of that logfile (screenlog.0) makes me wonder if the process is already running under the control of screen? If that were the case, screen -ls should show an active session, and screen -R should re-attach to it.
If the log filename is a red herring, you may be able to r... | Pass Enter key to dist-upgrade's prompt, running inside a GUI terminal on a remote machine, accessible henceforth only over SSH |
1,584,874,164,000 |
A major advantage of doing an in-place upgrade compared to doing
a clean install,
is that all accounts, configurations, and installed programs are kept
intact.
Using Windows Subsystem for Linux (WSL),
I have installed a fresh instance of openSUSE 42.
1
How can I perform an in-place upgrade of openSUSE 42 to 15.x?
My p... |
How can I perform an in-place upgrade of openSUSE 42 to 15.x?
Before starting to experiment, it's a good idea to make a
precautionary backup in case things go wrong.
To back up the existing .repo configuration files, do :
1
cd /etc/zypp/repos.d/ && sudo zip oss-42.2_orig.zip *.repo
How I upgraded openSUSE from 42.2... | How to do an in-place upgrade to the latest openSUSE Leap release |
1,584,874,164,000 |
I am unable to update my pop-os distribution due to the inability to upgrade 1 package.
apt list --upgradable -a
returns
Listing... Done
pop-system-updater/impish 0.1.0~1657035226~21.10~6f0d903 amd64 [upgradable from: 0.1.0~1655219862~21.10~b81523a]
pop-system-updater/now 0.1.0~1655219862~21.10~b81523a amd64 [instal... |
after following this thread (forcing the replacement of the sources) I manage to update and upgrade with several reboots, and apt autoremove.
| unable to update/upgrade 1 package [closed] |
1,584,874,164,000 |
Every time I try to update or install a new package, I get these errors:
┌──(mahdi㉿kali)-[~]
└─$ sudo apt update
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:3... |
/usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm is corrupt, you need to re-install perl-base:
sudo apt reinstall perl-base
| debconf broken, can't update, install or fix any package anymore |
1,584,874,164,000 |
I'm trying to run sudo dnf system-upgrade download --refresh --releasever=30 --allowerasing (from fedora 25) and hitting the following errors.
Running transaction check
Error: transaction check vs depsolve:
(php-composer(symfony/expression-language) >= 2.8 with php-composer(symfony/expression-language) < 5) is needed ... |
This could work:
dnf remove '*php*'
| Error: transaction check vs depsolve... php dependencies |
1,584,874,164,000 |
How can I hold packages back from getting upgraded and do a Ubuntu Release Upgrade at the same time?
If I run this script I'm getting the error:
ASK [Run do-release-upgrade non-interactively.]
fatal: [31.171.246.151]: FAILED! => {"changed": true, "cmd":
["do-release-upgrade", "-d", "-f", "DistUpgradeViewNonInteracti... |
Q: "How can I hold packages back from getting upgraded and do a Ubuntu Release Upgrade at the same time?"
A: In Ubuntu, it is not possible to upgrade a release and keep the packages. It's necessary to install the packages from the new release's repositories.
| Ansible hold back packages to be upgraded and do-release-upgrade |
1,584,874,164,000 |
Running # apt-get dist-upgrade produced the following warnings/errors:
WARNING: missing /lib/modules/uname
depmod: ERROR: Bad version passed uname (2 times)
dpkg: warning: version 'uname' has bad syntax: version number does not start with digit (4 times)
Everything happened in the dist-upgrade step right after Proce... |
During the days before the apt-get dist-upgrade issue appeared, I run update-initramfs -k <version> -c several times.
In one case I can remember that I erroneously used just uname as parameter (instead of the `uname -r`). I was not aware that although this command produces warning and error messages it still creates ... | "apt-get dist-upgrade" reports error "depmod: ERROR: Bad version passed uname" and various warnings |
1,584,874,164,000 |
Where is the log that tells me where the upgrade got to before it failed.
My current info:
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2019.1
Codename: n/a
Just trying to get to the latest build
|
The detailed log of apt-based package changes (including upgrades) is stored in /var/log/apt/term.log. Reading that will tell you how far the process got, and also why it failed.
/var/log/apt/history.log, which you can match up with term.log by looking at the entry timestamps, will tell you what apt command was run an... | My Kali upgrade fails - location of the log to find out the problem |
1,584,874,164,000 |
I'm getting this error while upgrading to Fedora 26 from 25
Detailed errors from the package manager follow:
Error running transaction: file /usr/bin/pytest from install of python2-pytest-3.1.1-1.fc26.noarch conflicts with file from python-logilab-common-0.63.2-6.fc25.noarch
Any solution?
|
First, it's worth checking whether the package is obsolete; in this case, it is.
Assuming you're following the instructions outlined here, two things you can try:
First, at step 3 from the article, append "--allowerasing", to allow the upgrade process to remove obsolete packages. I.e., instead of:
# dnf system-upgrade... | Error while upgrading to Fedora 26 from 25 |
1,584,874,164,000 |
I recently attempted a do-release-upgrade, which unfortunately was interrupted during the process (it is a remote machine, that I can only access through ssh), and I now encounter many broken dependencies that I'm unable to fix. Also I'm unable to install other packages (for example apache2) because of those unmet dep... |
I finally found the reason: The repos were missing the "main" !! See Edit 2
| broken Ubuntu after failed release-upgrade |
1,584,874,164,000 |
I am trying to upgrade my Debian 9 to Debian 10.
I have changed my sources.list to following
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://... |
The build.openvpn.net repository accept only the following Debian codenames :
wheezy
jessie
stretch
Check your /etc/apt/sources.list.d/ then disable the openvpn repository. The package openvpn can be installed from Debian repository later:
sudo apt install openvpn
| Upgrading Debian 9 Stretch to Debain 10 Buster |
1,432,290,488,000 |
I'm trying to remove this dkms module but am running into trouble.
I run
sudo dkms uninstall rtl8812au/4.3.14
and I get
Error! The module/version combo: rtl8812au-4.3.14
is not located in the DKMS tree.
However, when I run dkms status, I get
8188eu, 1.0, 4.13.0-26-generic, x86_64: installed
bcmwl, 6.30.223.271+bdc... |
In case of normal operations gone wrong, you can always delete dkms add-ons by hand, with sudo or as root.
Normally the modules sources are installed by make install under /var/lib/dkms/ in a directory with the corresponding name, probably named rtl...something. Just delete that directory.
You have also to delete the... | why can I not remove this dkms module? |
1,432,290,488,000 |
I have installed vitualbox on Debian Jessie according to instructions on debian wiki.
By running:
apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox
During installation some errors were reported.
Now I want to re-configure virtualbox-dkms but I receive this error:
Loading new virtualbox-4.3.1... |
I did all of these solutions but problem was about my kernel!
linux-headers-uname -r wanted to install 3.16.0-3 headers due to my kernel version but there is no such linux kernel header in Debian repos: There is 3.16.0-4
Solution: upgrade my kernel via apt-get then everything works fine.
| cannot reconfigure virtualbox-dkms |
1,432,290,488,000 |
I want to install CUDA according to the info on NVIDIA CUDA toolkit site
wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm
sudo rpm -i cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm
sudo dnf clean all
sudo dnf ... |
You didn't enable epel. You enabled the codeready-builder repo.
First, add the epel repo:
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
It's normally enabled by default after it's installed but if not:
dnf config-manager --enable epel
You can then install dkms.
| CUDA 10 and dkms on RHEL8 |
1,432,290,488,000 |
I would appreciate, if anybody can help me.
1) I am trying to build kernel module for Ubuntu sever using dkms.
Detailed manual is here.
2) When It is building module using this syntax:
sudo dkms build -m ixgbevf -v 2.15.3
it says, that some kernel headers are missing:
Kernel preparation unnecessary for this kernel. ... |
So, Finally, I have managed to install driver ixgbevf v. 2.15.3 for kernel version 3.13.0-43.
But, there are some important points:
First of all, I tried to use make to build it manually and got the same result:
Makefile:64: *** Kernel header files not in any of the expected locations.
Makefile:65: *** Install the ap... | Building kernel module using dkms, missing headers |
1,432,290,488,000 |
I have very little experience with kernel module development. Despite this I have been tasked with maintaining an old driver for a Sensoray 626 DAQ card. I am using a very simple dkms setup to build and install the driver which has been working well for a long time. The driver has been working in Ubuntu 22.04 until re... |
It appears that the problem is that the Makefile (which was written by the original developers) sets the CC make variable, thus preventing DKMS from properly overriding the compiler using a CC environment variable. This potential problem is described by this bug report.
Since in my case the Makefile only uses the CC m... | Unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ when building kernel module |
1,432,290,488,000 |
I'm analyzing different PKGBUILDs to learn creating packages for Arch. I saw in a lot of them, that they do make on sources, and then manually copy files in the different places with the install command, instead of running make install. Is there a reason for it?
Examples:
https://aur.archlinux.org/cgit/aur.git/tree/P... |
Well for one, these are dkms packages, and the actual make/etc is handled via dkms at install time, not make time.
For another reason, perhaps the Makefile itself is rather shoddy itself and would not work/could not be made to work with arch linux's packaging standards.
If you check out more repo PKGBUILDs you may fin... | Arch Linux: Why people do not do "make install" in PKGBUILD? |
1,432,290,488,000 |
I am running AlmaLinux 9 (RedHat 9 clone) and have compiled a new kernel module. I am running in a VM with UEFI and secure boot enabled. When I insert the module I get the following error:
insmod: ERROR: could not insert module npreal2.mod: Key was rejected by service
From other posts I concluded it was related to ... |
Now (after a discussion in the comments) that you have a working but unsigned npreal2.ko kernel module, we can try tackling Secure Boot.
First, you need to create a X.509 key pair (a public key and a corresponding secret key) to use as a MOK. To do that, first create a minimal OpenSSL configuration file, as e.g. ~/x50... | Insmod causes key rejected by service |
1,432,290,488,000 |
I need to install a .deb package on a raspberryPi that doesn't have connectivity. When I try to install such package using:
sudo dpkg -i <name>.deb
I get the error:
dpkg: dependency problems prevent configuration of rtl8192eu-dkms:
rtl8192eu-dkms depends on dkms (>= 1.95); however:
package dkms is not install... |
You must install dkms and all its dependencies at the same time or before installing rtl8192eu-dkms. For example: dpkg -i rtl8192eu-dkms.deb dkms.deb or dpkg -i dkms.deb && dpkg -i rtl8192eu-dkms.deb.
| Raspbian/Debian - Install .deb offline |
1,432,290,488,000 |
I'm trying to install a Windows7 guest on a Linux host with Virtual box. I've set my guest up but when I hit start, I keep getting the message:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall ... |
Remember to use sudo. Run it like this and it will work:
sudo apt-get install dkms
sudo su
/etc/init.d/vboxdrv setup
see if it works now.
I am trying to use it too. I had the same problem.
I did the following in the terminal:
sudo su
I don't have a virtual machine yet, but this problem/error is solved for me after d... | virtualbox keeps showing error "Kernel driver not installed" |
1,432,290,488,000 |
My OS:
uname -a
Linux debian 5.10.0-0.bpo.5-amd64 #1 SMP Debian 5.10.24-1~bpo10+1 (2021-03-29) x86_64 GNU/Linux
Something is wrong with my r8168-dkms; every time I install some other package, this appears at the end of the output:
Setting up r8168-dkms (8.046.00-1) ...
Removing old r8168-8.046.00 DKMS files...
-----... |
You can install the newer r8168-dkms (8.048.03-1~bpo10+1) package
from backports which compiles fine on my system (same kernel version).
If not already done, add the following line to your /etc/apt/sources.list
deb http://deb.debian.org/debian buster-backports main contrib non-free
to enable the backports repository.... | How to set up r8168-kms? |
1,432,290,488,000 |
I am trying to install wireless drivers on my Dell Studio 1555 (as per these instructions).
In order to install the drivers the guide asks me to install dkms, which I did by running
sudo apt-get install dkms
Afterwards, the instructions say to enable the service by running sudo systemctl enable dkms. However, when I ... |
What am I doing wrong?
You're mixing operating systems.
You're following instructions written for Arch Linux on Debian Linux. Debian Linux packages dkms in a very different way to Arch Linux. Arch Linux uses a systemd service unit to load/unload DKMS kernel modules. Debian Linux uses modprobe.d files.
Use the doc... | systemctl: Failed to execute operation: No such file or directory |
1,432,290,488,000 |
I am on Linux Mint 18.1 Cinnamon 64-bit.
DKMS seems to be stuck while installing new kernel for 30 minutes now, what shall I do?
Kill the DKMS process? And then run dpkg --configure -a?
Here is the mintupdate log:
(Reading database ... 317520 files and directories currently installed.)
Preparing to unpack .../adobe-fl... |
First you need to get rid of all those DKMS processes:
ps aux | grep dkms
This will show you what DKMS related processes are running.
Don't kill those recklessly, you need to identify this process or all such processes:
make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia-375/375.26/build
The reason being if... | DKMS stuck while installing new kernel, what shall I do? |
1,432,290,488,000 |
I'm using Debian "testing".
At my work we have a Novell network and we are "forced" to use ncpfs. With kernel 4.18 this module/driver was removed from kernel.
Can someone explain how to re-add this module/driver? Maybe by using DKMS?
|
My co-worker built a RPM and I edited it for use with Debian and DKMS. If you need it, feel free to clone it here. It's also available as stand-alone-module here.
| Re-add ncpfs module to linux kernel 4.18, with Debian |
1,432,290,488,000 |
I'm in PopOS. If I try to install any of 5.8.* new kernels, an error shows up: "ERROR (dkms apport): kernel package linux-headers-5.8.-generic is not supported". I have this problem with ALL the 5.8. versions, and I can't use Virtualbox with these versions of kernels. How could I fix?
|
You will need minimum version 6.1.14 of VirtualBox to run on Kernel 5.8
you are right thanks. if I may ask you... how did you find this? what did you search on google? in general, if I encouter a bug, what can I do in order to find news by myself instead of asking here?
In my case it was experience, I already seen r... | If I try to install any of 5.8.* new kernels, an error shows up: "ERROR (dkms apport): kernel package linux-headers-5.8.*-generic is not supported" |
1,432,290,488,000 |
I am trying to install DKMS on a Linux system that I made from the Linux from Scratch and Beyond Linux from Scratch books. I've found the package source from here but absolutely no info as to how to install them. There's no configure file in the tar ball and the Makefile seems to expect either Debian or RPM, which I d... |
Ok...so there's only one change to be made. This can be done in two ways:
Rename the directory in which the tarball is extracted as dkms instead of dkms-2.2.x.x. The Makefile expects that the tarball is unpacked in a directory called dkms.
Change the Makefile using the below sed:
sed "s@\.\./\$\(RELEASE_NAME\) @\... | Install DKMS on self-made Linux system |
1,432,290,488,000 |
I use the rtl8812au driver for my wifi adapter. I have dkms setup so that after each kernel upgrade, it gets compiled. Here are the commands I ran to set that up:
DRV_NAME=rtl8812AU
DRV_VERSION=4.3.14
mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
git archive driver-${DRV_VERSION} | tar -x -C /usr/src/${DRV_NAME}-${DRV_VER... |
cat /usr/src/8812au-4.3.14/dkms.conf
PACKAGE_NAME="rtl8812AU"
PACKAGE_VERSION="#MODULE_VERSION#"
BUILT_MODULE_NAME[0]="8812au"
MAKE="'make'"
CLEAN="'make' clean"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
But I use git clone. And I rename /usr/src/rtl8812AU to /usr/src/8812au-4.3.14/
sudo dkms add -m... | Have to run insmod for rtl8812au after each boot |
1,432,290,488,000 |
My apt install id3v2 fails due to
dkms: running auto installation service for kernel 6.1.0-18-amd64.
with
dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
linux-image-6... |
A package hold doesn’t prevent packages which are already installed from being processed:
hold is used to mark a package as held back, which will prevent the package from being automatically installed,
upgraded or removed
In your case, linux-image-6.1.0-18-amd64 is already installed (at least partially), and it’s it... | Why is apt-mark hold not stopping dkms from running on Debian? |
1,432,290,488,000 |
I am tring to install nvidia driver by the following command.
sudo ./NVIDIA-Linux-x86_64-418.43.run --dkms -s
Here I got an error as follows.
ERROR: Failed to run `/sbin/dkms build -m nvidia -v 418.43 -k 3.10.0-1062.el7.x86_64`: Error! echo
Your kernel headers for kernel 3.10.0-1062.el7.x86_64 cannot be found at
... |
The simplest option would appear to be a reboot, so that the running kernel matches the installed headers (1160.31.1).
Otherwise you’d have to find the header package for your older kernel (1062).
| Your kernel headers for kernel 3.10.0-1062.el7.x86_64 cannot be found |
1,432,290,488,000 |
I'm using Debian 12 Bookworm, and currently, when I run uname -a, it shows:
Linux pctxd 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux
The package linux-image-6.1.0-21-amd64 and related packages are ready to install. However, the corresponding linux-headers-6.1.0-21-amd64 package... |
The kernel image and headers packages come from the same source package, so they are available simultaneously on the mirror network (barring failures on a specific mirror). If you follow the amd64 link on the linux-headers-6.1.0-21-amd64 package page, you’ll find a package download link which works; that’s the package... | How to defer kernel updates until the corresponding "linux-headers" package is available? |
1,384,098,124,000 |
I want to copy my c directory with all subdirectories excluding ./git subdirectory. I do it using rsync :
echo "copy c and sh files "
rsync -a --include='*.c' --include='*.sh' --include='*/' --exclude='*' ~/c/ ~/Dropbox/Public/c
# remove .git directory = do not send it to dropbox. Thx to Tomasz Sowa
rm -rf ~/Dropbox/P... |
Just add an explicit exclude for .git:
rsync -a --exclude='.git/' --include='*.c' --include='*.sh' --include='*/' --exclude='*' ~/c/ ~/Dropbox/Public/c
Another option is to create ~/.cvsignore containing the following line along with any other directories you'd like to exclude:
.git/
| How to use rsync to backup a directory without git subdirectory |
1,384,098,124,000 |
I'm using Debian 6 and Dropbox. I followed these commands to install it.
When I run ~/.dropbox-dist/dropboxd — Dropbox works and stuff. Problem is that when I close terminal or, even worse — reboot, Dropbox stops working and I need to run that daemon again.
How can I have the computer automatically start that daemon i... |
If you're running the daemon from your own account, start it at boot time with Cron. Run crontab -e to edit your crontab file and add the line
@reboot ~/.dropbox-dist/dropboxd
| How to run Dropbox daemon in background? |
1,384,098,124,000 |
I've been struggling with this for a couple days so I'm hoping someone on SE can help me.
I've downloaded a large file from Dropbox using wget (following command)
wget -O folder.zip https://www.dropbox.com/sh/.../.../dropboxfolder?dl=1
I'm sure it's a zip because 1), file dropboxfolder.zip yields
dropboxfolder.zip: Zi... |
I had the exact same issue with dropbox, wget and zip.
I used an alternative compressing tool and extracted the file with:
7z e file.zip
| Unzip thinks my zip file is a zip bomb |
1,384,098,124,000 |
I mounted Box.com cloud storage using davfs according to these instructions. I mounted my Box.com account under /home/me/Cloud/Box
I can access the mounted filesystem via Dolphin as well as via the terminal. It is a little slow, but I can list (ls) and navigate the entire directory structure with no errors.
Next I att... |
The problem occurs because of rsync making temporary files with filenames that the box.com and/or davfs do not understand. Thus the file .01_Track_1.mp3.YVmFI9 does not exist on your system, but is a temporary artifact of rsync. Some guesswork from my side: if you don't get the error on all files, you probably only ge... | rsync mkstemp failed Invalid argument (22) with davfs mount of Box.com cloud |
1,384,098,124,000 |
Running other desktop environments than Unity or Gnome with a different file manager than Nautilus, it might be a good idea to install Dropbox without Nautilus. But advice on Dropbox involves installing Nautilus too.
Nautilus has conflicts with some file managers, as it takes over the desktop (workspace) and the file ... |
Installing the Dropbox deb files from the Dropbox website (Ubuntu or Debian, I have not tested others) will not install Nautilus, although gdebi says a Nautilus extension will be installed. Installing just Dropbox from Ubuntu sources in Synaptic or in terminal will neither install Nautilus. File manager integration is... | How to install Dropbox (and have Dropbox file manager integration) without Nautilus? |
1,384,098,124,000 |
I'm using Dropbox without the GUI in Linux. I would like to limit the upload rate, sometimes large files eats my internet bandwidth. Anyone knows how I do that?
|
You can start the Dropbox executable under trickle. This is a simple program that limits the bandwidth used by the program that it starts.
trickle -u 42 dropbox.py
| Control Dropbox upload rate on the command line |
1,384,098,124,000 |
I'm trying install dropbox on Debian with xfce and every time it ends with this error
bn.BUILD_KEY: Dropbox
bn.VERSION: 3.12.6
bn.DROPBOXEXT_VERSION: failed
bn.is_frozen: True
pid: 11257
ppid: 5898
ppid exe: '/bin/bash'
uid: 1000
user_info: pwd.struct_passwd(pw_name='honzik', pw_passwd='x', pw_uid=1000, pw_gid=1000, ... |
The error message the OP posted shows libxslt.so.1 is missing, as in "libxslt.so.1: cannot open shared object file"
Using debian.packages.org or a system where this library is present shows the name of the package:
$ dpkg -S /usr/lib/x86_64-linux-gnu/libxslt.so.1
libxslt1.1:amd64: /usr/lib/x86_64-linux-gnu/libxslt.so.... | Install dropbox ends in error |
1,384,098,124,000 |
I am trying to remove Dropbox from my computer. So far I have done the following:
sudo aptitude remove dropbox
sudo aptitude purge dropbox
But this didn't get rid of it 100%
oshiro@debian:~$ locate dropbox
/usr/share/nmap/scripts/broadcast-dropbox-listener.nse
/var/cache/apt/archives/dropbox_1.6.1_i386.deb
/var/lib/... |
You have already completely removed Dropbox from your computer, at least in ways that manifest themselves by a file whose name contains dropbox. You may have other traces of your use of Dropbox remaining, for example in your browser history. When it comes to file names, check Dropbox as well (locate -i dropbox will do... | How to remove Dropbox |
1,384,098,124,000 |
After installing the Dropbox DEB package from their site and starting the Dropbox daemon, the tray icon for Dropbox doesn't show up in the tray. I have verified that Dropbox is, in fact, running, but the icon still doesn't show up.
How can I get the tray icon working in Elementary OS Luna/Freya?
|
As of 2015/04/27, the Dropbox daemon looks for a couple of environment variables on startup to try and correctly display the tray icon. Since these environment variables aren't set by Elementary OS, Dropbox just gives up and doesn't try to display a tray icon.
To test this theory, stop the Dropbox daemon like so:
dro... | Dropbox tray icon doesn't show up in Elementary OS Luna/Freya? |
1,384,098,124,000 |
I want to create a backup of a single .tex file. I created the hard link to the file (which is not in Dropbox directory, lets say it is A) inside Dropbox directory. I did this so because I do not want to backup other auxiliary file created (eg. axu, .log, .bbl etc.) when compiling the tex file. I edit and compile the ... |
Dropbox is probably using inotify or a variant thereof to watch for changes in the Dropbox directory. Because the change happens outside of the Dropbox directory, Dropbox doesn't see it.
To get the desired effect, you might be able to use symlinks instead of hard-links. I'm not sure if there's any special reason it ... | Hardlinks in Dropbox not updated |
1,384,098,124,000 |
I have a machine (A) behind a firewall with no access to the Internet, on this machine I can NFS mount directories on another machine (B) which can access internet, and is accessible from Internet, but I cannot install anything on this machine (B).
I want to keep a directory on (A) in sync with my Dropbox (that I us... |
You may be able to use Unison to synchronize your files. Unison uses the rsync protocol and can run over ssh. You may need to copy the executable into your directory on the remote system.
Using rsync may cause problems as it is difficult to synchronize file deletions.
EDIT: To sync a folder on A from system C (wi... | Using rsync + cron to sync a machine behind a firewall with my dropbox |
1,384,098,124,000 |
I'm trying to get dropbox symlinked to the relevant folders in /home. I'd like to symlink them like this:
~/Dropbox/Pictures --> ~/Pictures
~/Dropbox/Camera Uploads --> ~/Pictures/Camera Uploads
If I do that it will work but I'll have two copies of my pictures and videos stored on Dropbox. I don't want to waste space.... |
Assuming you have root on the system, you can use a bind mount. Note that this will leave you with an empty Camera Uploads directory in your ~/Dropbox/Pictures, but avoiding that adds much more complexity (unionfs of some sort).
# mount --bind ~user/Dropbox/Pictures ~user/Pictures
# mkdir -p ~user/Pictures/Camera\ Upl... | Can I create a symlink that will ignore subdirectories? |
1,384,098,124,000 |
I am using Scientific Linux on my office computer and home laptop. I was usually signed in before I leave my office so when I made a change over SSH on my office computer, Dropbox would automatically sync the change.
But this time I rebooted my office computer using SSH with /sbin/reboot, and after signing in again i... |
There is a dropbox command line tool that allows you to perform all sorts of tasks, including stopping and starting dropbox.
You could include a short snippet in your .profile or .bash_profile (depending on what you use), that checks if dropbox is already running, and if not, starts it:
~/bin/dropbox.py running
[ $? -... | Getting Dropbox to sync over SSH |
1,384,098,124,000 |
How can i dump files from my CentOS box to Dropbox account? As regular nightly backup task.
|
0 1 * * * cp -a /tmp/files ~username/Dropbox/tmp_backups_$(date +%Y%m%d)
Breakdown: Every day at one am make an archive copy of /tmp/files into a folder with the date as part of the name in 'username's dropbox.
| How can i dump /tmp/files in CentOS to Dropbox using crontab? |
1,384,098,124,000 |
To keep multiple computers synced with dropbox I tried the following.
Approach A.
-Computer 1: Install dropbox, dropbox folder: /Dropbox/
-Computer 1: Create symbolic link in that folder to home folder
$ln -s /home/ /Dropbox/
-Computer 2: Install dropbox, dropbox folder: /Dropbox/ (got populated with files from ... |
I thought of a workaround for the problems with approach A:
-Computer 2: Pause syncing of dropbox by right-clicking on the notification icon and select 'pause syncing'
-Computer 2: Remove all files in your dropbox (optional move them to your home folder overwriting the local files, however in this scenario they are ... | Syncing multiple home folders with dropbox and symlinks |
1,384,098,124,000 |
I'm looking for some software that would provide features like Dropbox.
Will a simple webdav be enough for this use case?
|
OwnCloud is supposed to be a self-hostable cloud solution, see its feature list. It indeed offers WebDAV access, but also a lot more.
While building your own solution using WebDAV is probably possible (and its sufficiency heavily depends on your requested features, as @cjm noted), I'd advise to also have a look at gi... | Self hosted cloud storage |
1,384,098,124,000 |
I'm trying to get Dropbox not to autostart. The manual shows a command line option that should do the trick but it doesn't seem to work here (dropbox autostart n). Running dropbox autostart issues a note warning that it may only work on current Ubuntu distributions.
Questions
How can I get it not to start?
How should... |
In looking through the RPM that's available from the Dropbox website I only see the following content.
$ rpm -qpl nautilus-dropbox-1.6.0-1.fedora.x86_64.rpm |& \
grep -Ev "/icons/|.icon$|.png$|warning:"
/usr/bin/dropbox
/usr/lib64/nautilus/extensions-2.0/libnautilus-dropbox.so
/usr/lib64/nautilus/extensions-3.0/li... | Dropbox insists on autostarting - Fedora 20 |
1,384,098,124,000 |
I have a partition that contains all my personal stuff, which is mounted at boot under /home/myuser/foo. I would like to synchronize it on the cloud via Dropbox or Copy.com, but I don't trust them, so I have to encrypt the data in some way.
As I understood, it creates a "volume" when opened, and the data is clear onl... |
Instead of encrypting a whole volume, which is the TrueCrypt, LUKS and loopback approach, you can also encrypt the individual files you store in the cloud. Doing that manually with pgp before copying the file to your cloud synchronized directory is one way, but a bit cumbersome.
EncFS may be a solution for you instea... | Dropbox/Copy.com & Truecrypt |
1,384,098,124,000 |
I am using dropbox on my redhat linux kernel. Right now we have a dummy user set up, with it's own dropbox account. Everyone can access and dump their files into it while on the machine and then everyone has access to the share folder, for when they are not on the machine. This is in no way optimal but no one wanted t... |
Why not setup multiple instances of dropbox? I have 2 dropbox accounts which I've setup like so:
$ ls -l ~/Dropbox
drwxrwxr-x 10 saml saml 4096 Nov 30 22:21 personal
drwxrwxr-x 10 saml saml 4096 Dec 7 15:49 work
Inside each of those directories is a Dropbox folder:
$ ls -l personal/ work/
personal/:
drwxrwxr-x 10 sa... | Update different dropbox instances |
1,384,098,124,000 |
I tried every solution from How to run Dropbox daemon in background? and nothing solves my problem:
Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup but the problem is that right now I cannot restart the server (other users are using it actively).
So I am trying to start... |
thanks a lot for all your answers. Thanks to user Nixgrrrl's comment, I realize that it was because I was using ssh -X (the default on my system). As soon as I did normal ssh, trying the humble dropbox start & worked :)
| dropbox process stops when I log out of ssh |
1,384,098,124,000 |
I'm having issues with dropbox so I'd like to uninstall and reinstall it. To do so I need to remove ~/.dropbox-dist but no matter what I do it won't budge. If I run ls -l I get:
drwxr-xr-x 3 user user 4096 Nov 13 2014 .dropbox-dist
I have full permissions on the machine.
I have tried,
sudo rm -rf ~/.dropbox-... |
There are few things you could do here:
First check whether you have a Dropbox daemon running.
Check the attributes of the Dropbox folder using lsattr and if the folder is not editable, then change its attributes to editable using chattr.
UPDATE
As OP has reported in the comments, the .dropbox-dist folder contains i... | How to delete stubborn directory? |
1,384,098,124,000 |
I recently installed Dropbox on my computer running Debian 9.3. But it will not sync. When I mouse over the icon in the notification area of my toolbar, a message says...
Can't monitor Dropbox folder (Click to fix)
Can't access Dropbox folder
When I click the icon, the menu comes up, and I click "Can't monitor Dropbo... |
Based on this AU Q&A titled: How do I fix a “Can't access Dropbox folder” error? it sounds like you could try these to see if they resolve your issue:
$ sudo sysctl fs.inotify.max_user_instances=256
$ sudo sysctl fs.inotify.max_user_watches=1048576
If you find this resolves it you can make these permanent. Add the fo... | Can't monitor Dropbox folder |
1,384,098,124,000 |
My timeshift snapshots were taking up too much space on my laptop. Is it possible to move the snapshot from /home/timeshift to my dropbox folder to save space?
And then restore by moving the snapshot back into the /home/timeshift directory?
|
You never got a response, so here I am to save the day, two years later.
Nope. Timeshift seems to target partitions when looking for backup locations. Dropbox is a folder in your *nix partition. I'd just recommend getting an external hard drive or SSD for making future timeshift backups.
I wish they allowed backups to... | Can I save timeshift snapshot to dropbox? |
1,384,098,124,000 |
I am experiencing some weird problems, when using dropbox on my Debian install:
I run Debian with testing repositories enabled
I have Dropbox installed from the website
My dropbox-location is on a shared partition that is formatted with NTFS
I mount the dropbox-location in my fstab with the following line:
UUID=6620... |
TL;DR;
The solution that ultimately solved the problem was #4.
1. alternate /etc/fstab options
I've found a couple of people claiming that they're able to do what you're trying to do and did not see any mention of problems similar to yours. The only difference I could find was the /etc/fstab mount they were using. I'd... | Dropbox on Debian EAGAIN error on NTFS share |
1,384,098,124,000 |
I followed the guide here:
http://www.webupd8.org/2011/06/encrypt-your-private-dropbox-data-with.html
to get dropbox encfs working on my first computer. I disabled the syncing of the encryption key. so I copied it manually from the 1st computer to the 2nd computer.
By the time I had time to get this setup on the 2nd... |
Not positive about GNOME 3.x but in GNOME 2.x you can get to the "Passwords and Encryption Keys app" (Applications -> Accessories -> Passwords and Encryption Keys).
From here you can manage passwords, keys, etc.
Screenshot
References
GNOME Keyring
Gnome Keyring tutorial and security article; Vala resources; etc
... | Forgot encfs password |
1,384,098,124,000 |
I'm using Unison to synchronize my home across several computers, and I've addressed everything but this.
The Dropbox configuration is partially skipped, and as a result Dropbox thinks there is no configuration and goes through the configuration wizard again.
Here's the output from Unison related to dropbox:
Reconcil... |
As of Unison 2.40 (the latest version as I write), Unison doesn't support any file that isn't a regular file, a directory, or a symbolic link. Prior versions aborted the transfer upon encountering special files; since 2.40 these files are ignored. In 2.40.65, you don't get to see the name of ignored files in the first... | Unison can't synchronize Dropbox configuration (socket files) |
1,384,098,124,000 |
I just install Debian 10 for the first time, and then dropbox, simply by downloading the .deb file and doing dpkg -i.
I got dropbox to run just fine, but unfortunately the install "broke" my apt, which keeps complaining:
dropbox : Depends: libpango1.0-0 (>= 1.36.3) but it is not installable
Now it seems I cannot inst... |
I think the most straightforward solution is to use the installer packaged in Debian non-free, rather than the package provided by Dropbox:
remove the dropbox package;
edit /etc/apt/sources.list and ensure that your buster lines include contrib and non-free, along the lines of
deb http://deb.debian.org/debian buster ... | Installing dropbox on Debian 10: problem with libpango |
1,384,098,124,000 |
I downloaded dropbox_2020.03.04_amd64.deb from dropbox.com and install it with sudo apt install ./dropbox_2020.03.04_amd64.deb, then I click the app dropbox to install it.
Dropbox installation windows get stuck at 92% (sometims 92%, 99%), then the process python3 /usr/bin/dropbox start -i starts occupying more and mo... |
The following seems to work for me on Lubuntu 22.04:
# install any dependencies
sudo apt install libpango1.0-0
sudo dpkg -i dropbox_2020.03.04_amd64.deb
which produces:
Dropbox installation successfully completed! You can start Dropbox
from your applications menu.
then starting Dropbox from the GUI will download so... | install Dropbox on Ubuntu |
1,326,322,412,000 |
Is there a free and open source duplicate image finder for Linux based systems?
Finding exact duplicates (based on content, not file name) is sufficient for me, but the ability to find similar images would certainly be great, too.
|
Digikam
Add all the photos to your collection. In the menu, select “Tools / Find duplicates”. This will look for duplicates accross your whole collection.
Findimagedupes
A command line tool. Pass all the images you want to compare on the command line.
Geeqie (formerly gqview)
In the menu, select “File / Find duplicate... | Open source duplicate image finder for Linux? |
1,326,322,412,000 |
I have a folder with duplicate (by md5sum (md5 on a Mac)) files, and I want to have a cron job scheduled to remove any found.
However, I'm stuck on how to do this. What I have so far:
md5 -r * | sort
Which outputs something like this:
04c5d52b7acdfbecd5f3bdd8a39bf8fb gordondam_en-au11915031300_1366x768.jpg
1e88c68999... |
I'm working on Linux, which means the is the command md5sum which outputs:
> md5sum *
d41d8cd98f00b204e9800998ecf8427e file_1
d41d8cd98f00b204e9800998ecf8427e file_10
d41d8cd98f00b204e9800998ecf8427e file_2
d41d8cd98f00b204e9800998ecf8427e file_3
d41d8cd98f00b204e9800998ecf8427e file_4
d41d8cd98f00b204e9800998ecf... | How to remove duplicate files using bash |
1,326,322,412,000 |
I have a string like
"aaa,aaa,aaa,bbb,bbb,ccc,bbb,ccc"
I want to remove duplicate word from string then output will be like
"aaa,bbb,ccc"
I tried This code Source
$ echo "zebra ant spider spider ant zebra ant" | xargs -n1 | sort -u | xargs
It is working fine with same value,but when I give my variable value then ... |
One more awk, just for fun:
$ a="aaa bbb aaa bbb ccc aaa ddd bbb ccc"
$ echo "$a" | awk '{for (i=1;i<=NF;i++) if (!a[$i]++) printf("%s%s",$i,FS)}{printf("\n")}'
aaa bbb ccc ddd
By the way, even your solution works fine with variables:
$ b="zebra ant spider spider ant zebra ant"
$ echo "$b" | xargs -n1 | sort -u | x... | Remove all duplicate word from string using shell script |
1,326,322,412,000 |
I'm running Mac OSX and trying to use the command line to find the number of files I have with the same name.
I tried to use the following command:
find ~ -type f -name "*" -print | basename | sort | uniq -d > duplicate_files
It doesn't work! When I do the following:
find ~ -type f -name "*" -print > duplicate_files... |
basename operates on its command line argument, it doesn't read from standard input.
You don't need to call the basename utility, and you'd better not: all it would do is strip off the part before the last /, and it would be slow to call an external command for each entry, you can use a text processing utility instead... | Use basename to parse a list of paths held in a file |
1,326,322,412,000 |
I have a massive music library (all mp3), but I some of the music is almost the same but:
Maybe one or two second longer
About 97% the same as another song
Or another bitrate.
Is there a way to find these duplicates? As mentioned they don't have the same size, name, or SHA1-hash.
|
There's an open source acoustic fingerprinting system called Echoprint, you might want to check I want to deduplicate a big collection. I haven't used it before (just stumbled across it), but it sounds awesome to be able to do this locally.
| Remove duplicate mp3 with different name, size, and hash |
1,326,322,412,000 |
I've got a directory tree created by rsnapshot, which contains multiple snapshots of the same directory structure with all identical files replaced by hardlinks.
I would like to delete all those hardlink duplicates and keep only a single copy of every file (so I can later move all files into a sorted archive without h... |
In the end it wasn't too hard to do this manually, based on Stéphane's and xenoid's hints and some prior experience with find.
I had to adapt a few commands to work with FreeBSD's non-GNU tools — GNU find has the -printf option that could have replaced the -exec stat, but FreeBSD's find doesn't have that.
# create a l... | How to delete all duplicate hardlinks to a file? |
1,326,322,412,000 |
I have a large music collection stored on my hard drive; and browsing through it, I found that I have a lot of duplicate files in some album directories. Usually the duplicates exist alongside the original in the same directory.
Usually the format is filename.mp3 and duplicate file is filename 1.mp3. Sometimes there m... |
There is such a program, and it's called rdfind:
SYNOPSIS
rdfind [ options ] directory1 | file1 [ directory2 | file2 ] ...
DESCRIPTION
rdfind finds duplicate files across and/or within several directories.
It calculates checksum only if necessary. rdfind runs in O(Nlog(N))
time with N being the numbe... | Search and Delete duplicate files with different names |
1,326,322,412,000 |
This question/answer has some good solutions for deleting identical lines in a file, but won't work in my case since the otherwise duplicate lines have a timestamp.
Is it possible to tell awk to ignore the first 26 characters of a line in determining duplicates?
Example:
[Fri Oct 31 20:27:05 2014] The Brown Cow Jumpe... |
You can just use uniq with its -f option:
uniq -f 4 input.txt
From man uniq:
-f, --skip-fields=N
avoid comparing the first N fields
Actually this will display the first line:
[Fri Oct 31 20:27:05 2014] The Brown Cow Jumped Over The Moon
If that is a problem you can do:
tac input.txt | uniq -f 4
or if you ... | Remove duplicate lines from a file that contains a timestamp |
1,326,322,412,000 |
Say, I have two commands that return some text. For example:
$ ./c1
/usr/bin/foo
/usr/bin/bar
/usr/bin/baz
$ ./c2
/usr/bin/foo
/usr/bin/qux
/usr/bin/buzz
/usr/bin/bar
I want to remove the duplicate lines; i.e. the output will be (order isn't important):
/usr/bin/baz
/usr/bin/qux
/usr/bin/buzz
How would I go about do... |
With comm from GNU coreutils:
$ comm -3 <(sort -u <(./c1)) <(sort -u <(./c2)) | tr -d '\t'
/usr/bin/baz
/usr/bin/buzz
/usr/bin/qux
From man comm:
Compare sorted files FILE1 and FILE2 line by line.
With no options, produce three-column output. Column one contains
lines unique to FILE1, column two ... | Removing lines that are common to the outputs produced by two commands |
1,326,322,412,000 |
I have a file with multiple columns and have identified lines where specific column values (cols 3-6) have been duplicated using a bash script.
Example input:
A B C D E F G
1 2 T TACA A 3 2 Q
3 4 I R 8 2 Q
9 3 A C 9 3 P
8 3 I R 8 2 Q
I can display both instances of the repeated values. The other column values (cols 1... |
sort itself should suffice. First sort such that rows are "grouped" by field range 3-6, records within each group further ordered by fields 5 and 1. Pipe this to sort -u on 3-6, this disables last-resort comparison and returns the first record from each 3-6 group. Finally, pipe this to sort, this time by fields 5 and ... | Keeping first instance of duplicates |
1,326,322,412,000 |
I'm using the following code to find the duplicate username. However, it gives an error.
#!/bin/bash
cat /etc/passwd | cut -f1 -d":" | /bin/sort -n | /usr/bin/uniq -c |\
while read x; do [ -z "${x}" ] && break set - $x
if [ $1 -gt 1 ]; then
uids=`/bin/gawk -F: '($1 == n) { print $3 }' n=$2 \
... |
$ cut -d: -f1 /etc/passwd | sort | uniq -d
This will extract the first field (the usernames) of the :-delimited /etc/passwd-file, sort the result and report any duplicates.
To also get the UID and the rest of the duplicated passwd entries:
cut -d: -f1 /etc/passwd | sort | uniq -d |
while read -r username; do
grep "... | Finding duplicate users on CentOS |
1,326,322,412,000 |
I'm searching for a short snippet to find, count and merge consecutive duplicates using standard tools or a common scripting language.
Say our input is:
1 2 2 2 7 22 a b b c c c c c d dd 2 2 c c
And as output we would like to have something similar to:
1 3*2 7 22 a 2*b 5*c d dd 2*2 2*c
It is important to keep the or... |
How about this:
printf '%s\n' 1 2 2 2 7 22 a b b c c c c c d dd 2 2 c c | uniq -c
Output:
1 1
3 2
1 7
1 22
1 a
2 b
5 c
1 d
1 dd
2 2
2 c
It's simple and easy (and similar).
To get your format:
printf '%s\n' 1 2 2 2 7 22 a b b c c c c c d dd 2 2 c c |
... | Count and merge consecutive patterns |
1,326,322,412,000 |
I have a marathon file from which I want to print the names of the runners, who have made multiple runs. Something like:
M, 2:08:58.0, John Lukas, USA, 1997-07-25, Paris, France
F, 2:15:04:0, Abebbe Boukari, KEN, 2000-10-01, London, UK
and so on
I have tried with uniq but it just doesn`t happen:
uniq -d marathon | ... |
Another simple, alternative(for someone who dont want/know awk) script will be:
#!/bin/bash
sort -t',' -k 3 marathon | cut -d',' -f 3 | uniq -d
if someone wants to print whole line instead of just names:
#!/bin/bash
sort -t',' -k 3 marathon | cut -d',' -f 3 | uniq -d | grep -f - marathon
in over scripts:
sort take... | Print repeating pattern |
1,326,322,412,000 |
Two interfaces, eth0 and eth1 are part of a network bonding bond0 on CentOS 6.
All worked well under CentOS 5, but after the upgrade to CentOS 6.6, keeping the same configuration, the network works fine but
despite setting /etc/modprobe.d/bonding.conf with options mode=1 or even mode=active-backup, the status from /p... |
After some deeper investigation, found the problem for the round-robin and DUP problems. They are actually related.
round robin (0) instead of active-backup (1)
On CentOS 5+, and seemingly especially 6.6, it recommended / preferred to use the BONDING_OPTS parameter directly in ifcfg-bond0 (and not in the bonding mod... | CentOS 6 interfaces bonding, round-robin instead of active-backup, duplicates frames |
1,326,322,412,000 |
I'm looking for a way to remove one specific line from a bunch of files, but only if it occurs more than once in that file. Other lines should be kept, even if they are duplicates.
For example, a file like this where I would like to remove the duplicates of AAA
AAA
BBB
AAA
BBB
CCC
should become
AAA
BBB
BBB
CCC
I gue... |
With GNU sed:
sed '0,/^AAA$/b;//d'
That is, let everything through (b branches off like a continue) up to the first AAA (from the 0th line (that is even before the first line) and the first one matching /^AAA$/ (which could be the first line)), and then for the remaining lines, delete every occurrence of AAA (an empt... | How to remove a specific, duplicated line within a file? |
1,326,322,412,000 |
I have a file with multiple columns and want to identify those where specific column values (cols 3-6) have been duplicated.
The following code finds the duplicates but I want to display both instances, not just the second. The other column values (cols 1, 2 and 7+) can be different between the 2 lines hence the need ... |
uniq is the correct tool for that:
uniq -D -f2 file
Where:
-D - prints all duplicates
-f2 - avoid comparing the first 2 fields
Edit: If the fields 7 and above are not to be compared, you need awk:
awk 'n=x[$3,$4,$5,$6]{print n"\n"$0;} {x[$3,$4,$5,$6]=$0;}' file
The array item x[] (columns 3-6) is checked. If it's... | Identifying duplicate fields and print both with awk |
1,326,322,412,000 |
Yesterday I add a SSD to my PC configuration and I make on it a fresh installation. At the moment of installation I replace my old HDD and there was only the SSD. When the installation finish I make a manually shutdown to attach the HDD with cables and then turn on the pc. After that I can't open my information on the... |
Volume group name should be unique on system, by design. Problem occurs when a disk is moved from one system to another.
So you have few options (detailed below)
Rename the VG externally [not mounted] disk(s).
Rename the VG of your system (not realistic)
Merge both volume group into a single one (probably needs to re... | Can't mount second hard drive on CentOS 6.6 - Duplicate VG name |
1,326,322,412,000 |
[user@notebook foobar]$ ls *.jpg|wc -l
1959
[user@notebook foobar]$ cksum * | cut -d' ' -f-2 | sort | uniq -di | wc -l
698
[user@notebook foobar]$
There are many jpg files in a directory.
Many of the files are duplicates, but I can spot them out if the cksum is the same for them.
Sometimes there are 2 or 3 file of... |
Use fdupes:
fdupes -dN .
man fdupes:
-d --delete
prompt user for files to preserve, deleting all others (see
CAVEATS below)
-N --noprompt
when used together with --delete, preserve the first file in
each set of duplicates and delete the others without prompti... | Deduplicate image files |
1,326,322,412,000 |
I need to duplicate the stdout of a producer and feed it to two consumer in a synchronized fashion.
consumer 1
producer | duplicator |
consumer 2
This can easily be accomplished for example via tee:
((cat f.txt | tee /dev/stderr | ./cons1.py >&3) 2>&1 | ./cons2.py) 3>&... |
There is no general way to accomplish what you want.
The basic problem is that a pipe is a one-way thing, and the producer has absolutely no knowledge about the consumer's current state, and whether the data sent to the pipe has already been consumed or not.
So, there are two ways to work around this limitation, and b... | Duplicate stdin to stdout and stderr, but in a synchronized way |
1,326,322,412,000 |
I had a question about removing duplicate lines in multiple files and was provided with a useful script here: Remove duplicate lines from multiple JSON files while preserving file structure.
The problem is that my folder has 10000 files and each is 1.5 MB in size. The script has been running for days and is nowhere ne... |
I modified the script to loop the files 4 by 4 - tested on like 20 files, looks like it's working. The script will store the filenames in an array and then it will loop them 4 by 4 :
temp=$(mktemp)
declare -a files=($(echo *.json|sort))
length=$(echo ${#files[@]})
for ((i=0;i<length;i++))
do
... | Remove duplicate lines from multiple files in a folder: Check only files within a range |
1,326,322,412,000 |
I use gedit to modify/create files in my system, and sometimes I see that after editing, a duplicate file is created by the name of samename~
Just that ~ is extra. Why does this happen? Is there any significance of this file or is it okay if I delete it (I usually do)?
|
Some editors backs up the original file with a suffix, usually ~ but sometimes .bak, when saving the new file.
Vim, for example, does this if the backup option is enabled. With Vim, you may also modify the suffix used for the backup files:
set backup
set backupext=.bak
See also :help backup in Vim.
Refer to the docum... | Why is a duplicate file sometimes created after editing a file? [duplicate] |
1,326,322,412,000 |
I am looking for a way in Linux shell, preferably bash to find duplicates of files based on first few letters of the filenames.
Where this would be useful:
I build mod packs for Minecraft. As of 1.14.4 Forge no longer errors if there are duplicate mods in a pack of higher versions. It simply stops the oldest versions ... |
Filter possible duplicates
You could use some script to filter these files for possible duplicates. You can move into a new directory all files matching with at least another one, case insensitively, on the part before the first dash, underscore or space in their names. cd into your jars directory to run it.
#!/bin/ba... | Find duplicate files based on first few characters of filename |
1,326,322,412,000 |
I have a question about my code. I'm writing a Bourne shell script that get a user list from server by who command then put it into a file then, it will check the name by read line and if the script found a duplicate name it will print out a warning msg with the username, otherwise it will print out that no duplicatio... |
Your code uses at least two things that standard sh does not support:
[[ ... ]], this is an extension to the POSIX grammar that e.g. bash uses to introduce its own conditional expressions.
user=( $line ), this creates an array, which is another extension to the POSIX sh.
To find the duplicated lines in a text file:... | check duplicate login from file |
1,326,322,412,000 |
I am trying to copy lines from source.txt to target.txt. I would like this bash script to check each line on target.txt if there is duplicate entry before copy.
source.txt contains:
a$$a$$a
b**b**
c%%cc%%
d##d##d##
e^^e^^e^^
target.txt contains:
a$$a$$a
ee$$ee$$
ff__ff__
gg@@gg@@
zzxxzzxx
bb..bb..bb
e^^e^^e^^
hh... |
Why using bash? The grep command can do the job clean.
grep -Fxvf target.txt source.txt #>> target.txt
This will return those lines which are exist only in source.txt, then you can append these lines to your target.txt with just uncomment #>> target.txt.
You may also needs to unique the source.txt before, to prevent... | Check target file for duplicate entry before copy data from source file [duplicate] |
1,326,322,412,000 |
There is a file with a couple of identical and repetitive entries, which looks something like this:
123 abc nhjk
123 abc cftr
123 abc xdrt
123 def nhjk
123 def cftr
123 def xdrt
If the combination of (coloumns) Field1 and Field2 match, then only the first occurrence where they both match needs to be retained. So sinc... |
One way to do it is with the -u flag to sort although this may end up not preserving original file order:
sort -k1,1 -k2,2 -u file
If you need the de-duping done with file order preserved
awk '!a[$1, $2]++' file
| Remove repetitive entries from a file |
1,326,322,412,000 |
I get the following error after running sudo apt-get update (Linux Mint 12):
W: Duplicate sources.list entry http://www.duinsoft.nl/pkg/ debs/all i386 Packages
(/var/lib/apt/lists/www.duinsoft.nl_pkg_dists_debs_all_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
FSlint doesn't... |
You don't have duplicate packages.
As it says you have a duplicate entry in your sources.list (located in /etc/apt). How you fix this can depend on the package manager(s) you use. If you want to go straight to the sources.list, open a Terminal and type the following command.
gksudo gedit /etc/apt/sources.list
Look fo... | Do I have duplicate packages? |
1,326,322,412,000 |
I have a folder with some files (snippet of the contents of the folder)
PAT1.URGRSVP.50.WR786842JOB11632.WRS20140.FILE0005.DAT
PAT1.URGRSVP.50.WR786842JOB11643.WRS20140.FILE0003.DAT
PAT1.URGRSVP.51.WR786842JOB11643.WRS29232.FILE0003.DAT
PAT1.URGRSVP.50.WR786842JOB11694.WRS20140.FILE0002.DAT
...
...
...
My focus is on... |
ls *.DAT | awk -F. '{ if (c[$3$5]) print $0 ; c[$3$5]=$0}'
In the above, awk looks at each file name using . as a field separator. If it has seen the combination of the third and fifth fields before, it prints the file name. With your file names as input, the above produces:
PAT1.URGRSVP.50.WR786842JOB11643.WRS2014... | Find duplicate file names with specific matching pattern |
1,361,651,451,000 |
I started using dwm today and am trying to wrap my head around it, as OpenBox is my only other exposure to window managers.
As suggested in the official tutorial, I first opened couple of terminals and they all got tiled, with the first terminal being pushed to left, which I understand is the master.
I played with the... |
You have (inadvertently) incremented the windows in master, the default keybind for which is Modi, so that all of your clients in that selected tag are in master.
You can decrement the number of clients in master with Modd. Each press will decrement the clients in master by 1.
It may also be worth pointing out that dw... | How do I get rid of horizontal split in dwm |
1,361,651,451,000 |
I've just got dwm configured to my liking in terms of colors and tags. I'm just looking for one more thing: the ability to have certain applications automatically start with dwm on certain tags.
For example, I have a irc tag, I would like irssi to be run in that tag when I start my machine up. Is this possible? What w... |
dwm is a minimalist window manager that just manages windows. What you are asking requires a bit of a workaround. There are two separate, but related steps.
First, set up your rules for irrsi in config.h - specifying the tag in which you would like it to appear and whether it should be floating or not. Something like ... | Configure dwm to automatically open applications |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.