People who code: we want your input. Take the Survey

New answers tagged

0

I have used this command and it solved my issue: sudo dpkg --configure -a


0

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 ...


0

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. /etc/apt/apt.conf.d/99custom-conf Add the following to the file. # Do not keep downloaded packages Binary::apt::APT::keep-downloaded-packages "0"; Starting the file name with '99' ...


0

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 '....


0

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....


0

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,...


0

Add this string: Update-Manager::Always-Include-Phased-Updates; APT::Get::Always-Include-Phased-Updates; or Update-Manager::Never-Include-Phased-Updates; (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 sources: https://askubuntu....


0

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 ...


0

I did uninstall and install it using official website speedtest.net/apps/cli#ubuntu Command: curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash sudo apt-get install speedtest


1

There is a PPA by Constantin Piber with newer 1.6.1 version of rofi. To use it open terminal and type: sudo add-apt-repository ppa:cppiber/ppa sudo apt-get update sudo apt-get install rofi


0

From @user.dz: 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).


1

"[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 ...


1

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. ...


0

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 ...


1

...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 ...


0

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.


0

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 ...


0

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.


2

Removing snapd with sudo apt-get purge snapd was the solution.


0

Looks like there is a problem with the libreoffice. This is a bug to me. The workaround: wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb sudo dpkg -i libicu55_55.1-7_amd64.deb sudo apt-get -f install rm libicu55_55.1-7_amd64.deb Then, the problem is resolved.


1

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 ...


-1

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-...


2

It turns out I need to sudo apt-get remove gcc-9-base and then sudo apt-get install gcc-9-base. Same thing needs to done for gcc-10-base as well.


0

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*' ImageMagick-7.0.11-14/ :~$ ## and then cd the directory :~$ cd ImageMagick-7.0.11-14/ For basic user :~/...


0

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.


0

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 ...


1

In my case, I had to change the Ubuntu Software Update server from Brazil to the USA, then run: $ apt-get clean $ apt-get update And that worked.


0

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.


0

Two options: 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 ...


13

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') where: 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/...


0

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@...


1

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/&...


1

Try running: 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


0

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: YansWifiPhyHelper YansWifiPhyHelper::Default (void) { YansWifiPhyHelper helper; helper.SetErrorRateModel ("ns3::...


0

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. ...


0

This article helped me dpkg error code 1 sudo dpkg --configure -a sudo apt remove --purge python3.9-minimal python3.9 sudo apt autoremove sudo apt upgrade


0

Some Ngnix-based virtual servers need exact IP addresses. It's to easy check by this: curl http://myvirtualdomain.com <-- return 404 error curl -vk https://myvirtualdomain.com <-- OK This is caused by nginx configurations. Add your server's IP address on your virtual server block: server { listen 80; listen [::]:80; root /var/www/html/test.com/...


0

openssh-client package contains sftp executable. Install using the following: sudo apt-get install openssh-client Source: https://packages.ubuntu.com/focal/amd64/openssh-client/filelist


3

You have unnecessary PPA repository added. To remove it use commands below: # sudo apt-get install ppa-purge cd ~/Downloads 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 ...


0

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 ...


0

For any newcomers with the same question, make sure you didn't accidentally uncheck ''Download from internet'' in ''Software and Updates''... I am ashamed.


1

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 ...


1

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. Reference: https://discourse.ubuntu.com/t/needrestart-for-servers/21552


1

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 working. The final values look like below: ...


0

To create Docker container with kallisto we need to create a Dockerfile with the following contents: FROM ubuntu:20.04 RUN apt-get update RUN apt-get install -y kallisto CMD which kallisto then build it by docker build . -t focal-kallisto and run docker run -it focal-kallisto as the result it will show /usr/bin/kallisto, so it is actually installed inside ...


0

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 <...skip...> ...


1

This worked for me. Open the speedtest.py file in /usr/lib/python3/dist-packages with a text editor. Go to line 1174: map(int, server_config['ignoreids'].split(',')) 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 ...


1

You have to re-add the mentioned GPG key to the system by using command below sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654


1

It's because of the firewall of your ISP. I had the same issue, just use a VPN and check.


0

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).


Top 50 recent answers are included