The package downloaded from the official repo seems to be corrupted. I tried installing it manually by dpkg -i linux-headers-4.15.0-144_4.15.0-144.148_all.deb which gave an error that the package could not be decompressed.
I changed the download source to the mirror of University of Arizona and the upgrade worked after that. Some of the other mirrors could ...
The most direct way (that I know of) to achieve the desired effect here is with the "keep-downloaded-packages" option:
Create a new apt config file, e.g.
Add the following to the file.
# Do not keep downloaded packages
Starting the file name with '99' ...
The solution is in the document /var/lib/dpkg/triggers/File, you have to look for this trigger with sudo gedit /var/lib/dpkg/triggers/File, then we look for /usr/lib/systemd/catalog system/noawait, then we remove it and we have already resolved the error, if an error appears like this dpkg: error: syntactic error in trigger file /var/lib/dpkg/triggers/File '....
Please note that the package in question comes with dependencies:
# LANG=C dpkg -i linux-image-5.4.0-58-generic-dbgsym_5.4.0-58.64_amd64.ddeb
Selecting previously unselected package linux-image-5.4.0-58-generic-dbgsym.
(Reading database ... 473483 files and directories currently installed.)
Preparing to unpack linux-image-5.4.0-58-generic-dbgsym_5.4.0-58....
happened to me when upgrading major mariadb versions from 10.3 to 10.4 with the mariadb.org repo itself.
It's possible I lack insight, but apt depends -r <package> didn't give me a cue, but I knew the chain to be mariadb-server -> mariadb-server-10.x -> mariadb-server-core-10.x.
After removing all mariadb packages first and providing all packages,...
Add this string:
(A True/False boolean is not needed)
You should be able to add that line to any config file in /etc/apt/apt.conf.d/. Or create your own: /etc/apt/apt.conf.d/99-Phased-Updates
Thanks to Ray Wu for asking me what my sources.list file had. Originally it only had the following sources.
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe multiverse main
deb http://security.ubuntu.com/ubuntu bionic main
# deb-src http://security.ubuntu.com/ubuntu bionic main
I then checked my other computer and made my sources.list file look like ...
best is to use aptitude. which helps to track automatically top version of each package that fill the requirement. Otherwise, you have to list them one by one with apt. Similar to this case: askubuntu.com/q/900536/26246
In my case, I went with a different route (you can see the link in my post).
"[I]s there easy way to write this command so that it would run on either ubuntu version and install whichever of the two packages is available?"
You should not be explicitly installing libs anyway. You should be installing the applications, and letting apt figure out the dependencies. That's what apt is for.
NO: sudo apt install python3-gdbm ...
You see this error because some other program is trying to update Ubuntu. When a command or application is updating the system or installing a new software, it locks the dpkg file (Debian package manager).
This locking is done so that two processes don’t change the content at the same time as it may lead to unwarranted situation and a possible broken system.
I also had the dependencies and issue and I resolved differently.
So, when you install from Snap Store, you just get the error of missing dependencies but it does not mention which dependencies. Therefore, I attempted to install from terminal using sudo apt-get install ./megasync-Debian_10.0_amd64.deb(Note: Terminal was opened in the download folder and ...
...but newer ubuntu versions only have libgdbm6
Indeed: according to https://packages.ubuntu.com/search?keywords=libgdbm5 , libgdm5 is only available in Bionic (18.04LTS), whereas libgdm6 (See https://packages.ubuntu.com/search?keywords=libgdbm6) is available in Focal (20.04LTS), Groovy (20.10) and Hirsuite (21.04).
Consequently, the Focal/Groovy/Hirsuite ...
I'm on WSL2 and following these instructions was required to complete the installation.
Apparently the WSL instance was not time-synced with the real host time, causing problems with apt-get update && install.
It looks like you didn't successfully sign up for ESM (aka Ubuntu Advantage). When I do a sudo apt update on my 16.04 ESM machine the output looks like this:
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates ...
Go find yourself a new mirror. They change once in a while and might be turned off.
Basically the software updater uses "apt" - all front end tools do that. The advantage of using the cli command is that you get the precise errors, which - if pasted into your question - can help anyone to help you.
Looks like there is a problem with the libreoffice. This is a bug to me. The workaround:
sudo dpkg -i libicu55_55.1-7_amd64.deb
sudo apt-get -f install
Then, the problem is resolved.
If a package is "kept back", that means the upgrade command will not upgrade it because doing so would require installing or removing other packages. You can override this with the install command:
sudo apt-get install fwupd-signed
It will list which packages it has to install or remove in order to upgrade that, so make sure it's not removing ...
For a little more explanation, when a package is "kept back", that means that there is a new version of it available, but installing that new version would involve removing some packages or installing other new ones, and the upgrade command won't do that automatically.
You want to instead use the install command; e. g.:
sudo apt-get install build-...
Download and install latest ImageMagick version on Ubuntu 20.04 LTS.
:~$ wget https://download.imagemagick.org/ImageMagick/download/ImageMagick.tar.gz
:~$ tar -xvzf ImageMagick.tar.gz
:~$ sudo rm -rf ImageMagick.tar.gz
:~$ ls -d */ | grep '^ImageMagick*'
:~$ ## and then cd the directory
:~$ cd ImageMagick-7.0.11-14/
For basic user
The problem was that I adding debian repositories to my ubuntu, in order to install some packages from there. Those 2 files (libfile-fcntllock-perl and python3-netifaceswere) were accidentally updated from debian repos, but adding these repositories was a bad idea, so I ended up reinstalling ubuntu.
aptitude is more aggressive than apt-get about resolving package dependencies. aptitude remembers which packages were explicitly requested and which packages were only installed due to dependencies. It will automatically uninstall packages which were not explicitly requested when they are no longer needed.
Install aptitude with sudo apt install aptitude, run ...
Frist remove the packge.
sudo snap remove telegram-desktop
Install it back.
sudo snap install telegram-desktop
Now perform another install using the default package manager.
For Debian based OS,
sudo apt install telegram-desktop
For Arch based OS,
sudo pacman -S telegram-desktop
Extend @Bob91 answer for Arch users.
Copy libccd package from other PPA:libccd to yours (same PPA: fcl). Launchpad/LP supports that, easy: https://help.launchpad.net/Packaging/PPA/Copying
And it is up to you: copy only source package and rebuild it, or with binary too then they are served directly.
Create/Add a recipe to build and upload libccd packages into same PPA: fcl. No use ...
You can ask the APT to run a restoration procedure for you. Use commands below:
sudo apt-get update
sudo apt-get install --reinstall $(dpkg -S /usr/share/bug | sed 's/,//g' | sed 's|: /usr/share/bug||g')
dpkg -S /usr/share/bug shows the list of comma-separated packages
sed 's/,//g' - removes commas
sed 's|: /usr/share/bug||g' - removes : /usr/share/...
Try apt changelog <packagename>.
Newer packages are at the top.
Here's an example of the hello package changelog on Ubuntu 20.10.
You can see that the version number and upload date are clearly shown for each upload.
hello (2.10-2ubuntu2) eoan; urgency=medium
* Handle exit code 77 for skipped autopkgtests.
-- Steve Langasek <steve.langasek@...
Probably you are using a custom build location, so debian helper couldn't figure out automatically where are the files.
DEBIAN?!!! in capital that mean this is a binary Debian package, Are you sure this is pre-built binary. Otherwise rename it to debian or recheck documentation.
If you don't want changing build rules for files location. Write a debian/&...
sudo apt update && sudo apt autoremove && sudo apt --fix-broken install && sudo apt upgrade
This will attempt to:
update the package list
autoremove unnecessary packages
fix any broken installations and packages
upgrade all packages that can be upgraded
I don't know if you figured it out yet, but If you look on the wiki for this version, the function seems to be gone. But if you look at the source code of the previous version ns-3.32 the function is still there and is defined as:
I had the same issue after upgrading to python 3.9, and recreating the symlink '/usr/bin/python3' to point to the new location.
The only solution that worked for me, was that from a comment on the first answer, from @Kenivia: sudo apt remove --purge python3-apt
then sudo apt install python3-apt
This solved the error but uninstalled my ubuntu Software Center. ...
Some Ngnix-based virtual servers need exact IP addresses.
It's to easy check by this:
<-- return 404 error
curl -vk https://myvirtualdomain.com
This is caused by nginx configurations.
Add your server's IP address on your virtual server block:
You have unnecessary PPA repository added. To remove it use commands below:
# sudo apt-get install ppa-purge
apt-get download ppa-purge
dpkg -x ppa-purge_0.2.8+bzr63_all.deb ppap
sudo cp ppap/usr/sbin/ppa-purge /usr/local/bin/
sudo ppa-purge ppa:deadsnakes/ppa # first for bionic
sudo ppa-purge ppa:deadsnakes/ppa # second for focal
and then ...
I Found the solution after 3 days of research, finally i get Fahcontrol installed on my Ubunto 21.04, the solution is:
1 download Fahviewer/Fahclient/Fahcontrol from folding@home website:https://foldingathome.org/start-folding/
2 install Fahviewer and Fahclient first (it's easy u won't face a problem), how to do that? it's easy, open terminal (search for it ...
The Ubuntu repositories for Focal offer R 3.6.3. Just because another version of a software exists, that doesn't automatically mean that somebody packaged that version for Ubuntu (or Debian, or Fedora, or...) and offers those packages in their repository ;)
As for the repository offered by r-project.org, you may want to check what exact versions are ...
Yes, you do use those services. Most folks would be quite upset if those services stopped for a few days.
Some of those services may need to be briefly stopped in order to install the packages that you want installed.
You should indeed restart all four services: Select all four, then OK.
Please check the answer here: https://stackoverflow.com/a/67747756/6652972
Thank you @FANO_FN. This was the line in
/etc/mysql/mysql.conf.d/mysqld.cnf which needed to be corrected.
mysql8 doesn't have the value of NO_AUTO_CREATE_USER sql_mode
anymore. So, I removed that from the list of values and it started
The final values look like below:
To create Docker container with kallisto we need to create a Dockerfile with the following contents:
RUN apt-get update
RUN apt-get install -y kallisto
CMD which kallisto
then build it by
docker build . -t focal-kallisto
docker run -it focal-kallisto
as the result it will show /usr/bin/kallisto, so it is actually installed inside ...
The error message is misleading.
It says "you held packages", while oftentimes there will be no packages held by you:
$ apt-mark showhold
Would print nothing.
What actually happens is the packages are held by apt itself while running dependency analysis. So for example you could see output like this:
$ apt-get install gcc:i386
This worked for me.
Open the speedtest.py file in /usr/lib/python3/dist-packages with a text editor.
Go to line 1174:
and replace it with this one:
map(int, (server_config['ignoreids'].split(',') if len(server_config['ignoreids']) else ) )
Save the file and run the command again.
You can also comment the ...
This fix also works for CANView Log Viewer, used by Yacht Devices for configuring their NMEA 2000 marine devices.
I don't want to turn this thread into an inventory of all the legacy apps using this library, but Yacht Devices hasn't updated their distribution, and I haven't found their sources (there are many apps with this name).