New answers tagged

1

Here you go: No difference between the contents, only that 10periodic will be parsed earlier than 20auto-upgrades due to the ascending parsing behavior of apt. If same directive is mentioned in two different files (or more), the the earlier one(s) will be overridden by the last one. No. APT::Periodic::AutocleanInterval takes an integer value and sets the ...


0

Have just the same problem. So currently I cannot restore apt system into working state and system settings disappeared and I cannot even restore them. I.e. upgrage 12.04 to 14.04 made my computer almost unusable. And it's strange that problems was not resolved for several years. Probably, good solution could be to find another Linux distribution or even OS ...


2

dpkg -V or dpkg --verify checks the integrity of packages(s) by comparing the metadata stored in it's database and the file paths. You can select the output format using --verify-format option but it currently only supports rpm format. In rpm format only the paths that failed any check are shown. Take an example of failed check: ??5?????? c /etc/lightdm/...


0

Try using the DPKG program to verify those broken held packages. Man page extract -V, --verify [package-name...] Verifies the integrity of package-name or all packages if omit‐ ted, by comparing information from the files installed by a package with the files metadata information stored in the dpkg ...


2

From the dpkg manpage: -V, --verify [package-name...] Verifies the integrity of package-name or all packages if omitted, by comparing information from the files installed by a package with the files metadata information stored in the dpkg database (since dpkg 1.17.2). The origin of the files metadata ...


0

Workaround for dependency issues on Ubuntu 12.04 64bit Official Chrome support for Ubuntu version 12.04 has ended, but this doesn't mean that you have to abandon Chrome just yet. What follows is a quick tutorial on how to install the latest Chrome release (as of 2016-06-28) on Ubuntu 12.04 64-bit. Warning: This is a very hackish solution that might stop ...


0

PEBKAC turns out you need to run apt-get update before you can install any other packages. After running the updates you can then apt-get install -y ca-certificates and this is the package that contains the command update-ca-certificates


0

You can try: 1.Restart the comptuer and try again. 2. Uninstall chrome, run the updates, reinstall chrome. To be sure i'd do it in this fashion: sudo apt-get remove google-chrome-stable sudo apt-get update sudo apt-get upgrade sudo apt-get autoremove sudo apt-get update sudo apt-get install google-chrome-stable If you want to keep your settings you ...


-1

You can try removing [arch=amd64] in google-chrome.list file. And then do sudo apt-get update This will allow it to auto detect architecture from system. My google-chrome.list file contains line deb http://dl.google.com/linux/chrome/deb/ stable main


1

I encountered this issue when I tried upgrading 15.10 to 16.04 and I fixed using below steps. Boot in command line by pressing E when highlight the first entry to edit it. Cursor to the end of the linux line. Remove quiet splash vt.handoff=7 and add single. Press Ctrl+X to boot. Run screen (in order to get more than one prompt). Press Ctrl+A and then C to ...


1

This worked! I'm now the happy user of 16.04. sudo lsof /var/lib/dpkg/lock sudo kill -TERM <PID> sudo dpkg --configure -a


3

You have two problems: /etc/dpkg/dpkg.cfg.d/multiarch file is being opened by the shell as unprivileged user before the echo command runs, hence the permission error as only root should be able to create the file or write in it. The sudo is only being applied to echo command. The string foreign-i386 architecture is not correct for enabling multiarch ...


0

You can try the following command if you still use Ubuntu. sudo apt-get update Then, check if Java is not already installed: java -version If it returns "The program java can be found in the following packages", Java hasn't been installed yet, so execute the following command: sudo apt-get install default-jre This will install the Java Runtime ...


0

Makefile:2357: recipe for target 'libigraph.la' failed Line 2357 : That's a missing "libxml2-dev" : sudo apt-get install libxml2-dev libgmp-dev zlib1g-dev Note : The igraph library is not a 3party library. Is just one of the ~100,000 pieces of open source code / libraries / applications. (The license is "GNU GENERAL PUBLIC LICENSE".)


0

Use dpkg -C or dpkg --audit to check for broken packages.


1

dpkg-query does not have any field option to show date/time of installation. The other way of saying this is that dpkg does not store this information. Under the hood, dpkg-query uses various files in /var/lib/dpkg/ to get the information. Here are the available field names: Architecture Bugs Conffiles (internal) Config-Version (internal) Conflicts Breaks ...


0

I solved this as follows: delete the offending file (in the OP case /var/lib/dpkg/info/thunderbird-gnome-support.list reinstall the offending package using apt-get install --reinstall thunderbird-gnome-support This recreated the deleted file list for me as well. Of course, this can be cumbersome if a lot of files are corrupt, but in my case it was only ...


0

On terminal type: sudo apt-get install --reinstall python3.4 That will fix your problem, if this does not help install it using: dpkg -i {The full name of python 3.4 package deb file}


0

Fixed it. sudo apt-get --reinstall install network-manager


0

The problem is the missing component libglib2.0-bin which contains the glib-compile-schemas command. Because haguichi is damaged, apt-get or dpkg trys to remove it every time you want to install or uninstall something and that ends in an error because the libglib2.0-bin is missing and haguichis uninstaller depends on it. The following solution worked for ...


0

VPN's are added to network manager. So see network manager at the top right


0

Do a reboot Open terminal and just do sudo su dpkg --configure -a apt-get -f install apt-get autoremove apt-get autoclean apt-get update apt-get upgrade apt-get install software-properties-common apt-get install software-properties-gtk Have a nice experience with Ubuntu


0

As the output says, MRTG is already installed: mrtg is already the newest version. However, the package pbis-open errored during installation. One way that might fix this is the command sudo apt install --reinstall pbis-open Also, you have a lot of orphaned packages installed (dependencies that were installed but are not longer required) You can ...


1

Shutting down apache2 first before installing nginx should fix this problem.


2

What's likely happening is that the software updater is running and checking for updates. Only one program at a time can access the packages cache. Usually if you wait long enough for the updater to finish, it will work again.


1

Another process is currently using dpkg. This happens if any command using apt-get is currently running, or some other program that locks this file (such as aptitude, synaptic, gdebi, or dpkg). It also can happen if you start an installation but then force it to stop. Waiting for the current installation to finish or restarting your computer can solve this ...


0

Perhaps you can try and free some space first by purging out old unwanted packages using: sudo apt-get autoremove ..and then try again with the header install using: sudo apt-get install linux-headers-$(uname -r)


0

try sudo apt-get install linux-headers-$(uname -r) from: Error! Your kernel headers for kernel 3.5.0-25-generic cannot be found


1

i think you have the install and -f backwards. try apt-get install -f or, you might try sudo apt-get install --reinstall kde-full and see if reinstalling KDE will automatically fix broken dependencies...


0

This might be frowned upon, but you could try deleting the lock file... then re-attempting the upgrade: sudo rm /var/lib/dpkg/lock


0

Start your computer and trigger the 'shift' button until the grub-menu occurs. Boot your system with an older kernel version and open the terminal: sudo apt-get install linux-generic sudo reboot If this doesn't work, try: sudo apt-get --reinstall install linux-generic sudo reboot Now try to execute the commands as you mentioned in your question...


1

Solved, unfortunately, by a complete fresh install. But I had some trouble with gnome environment and ended up giving it up. So be aware. Thank you.


0

Installing boinc-client-nvidia-cuda while in Intel mode fixed it for me (using GTX 960m).


0

Try to reinstall mdadm: sudo apt-get --reinstall install mdadm If it doesn't work, cleanup your system first: sudo apt-get autoremove sudo apt-get autoclean sudo deborphan | xargs sudo apt-get -y remove --purge dpkg -l | awk '/^rc/ {print $2}' | xargs sudo dpkg --purge sudo apt-get clean sudo apt-get [--reinstall] install mdadm Update your system: ...


0

Make sure you don't have another update application open: eg Synaptic, Software Updater, Ubuntu Software, another terminal. Then, as @Dave Sha points out, try using sudo apt-get -f install.


0

For me on (L)Ubuntu 15.10, it was as simple as changing the version, from "stable" to "1": ***************************************** **** Debian package creation selected *** ***************************************** This package will be built according to these values: 0 - Maintainer: [ root@anon ] 1 - Summary: [ redis - web interface ] 2 - Name: [...


0

It seems that python installation is broken .. Try reinstalling python3-minimal sudo apt-get install --reinstall python3-minimal Now you can run sudo apt-get install --fix-broken again and then apt-get update .. if this fails let us know.


0

Since none of the kernels are recognized as installed by apt/dpkg you can safely delete them as @oldfred states. In case you havent already, issue: mount /boot && cd /boot rm -v abi-* && rm -v config-* && rm -v initrd* && rm -v System* && rm -v vmlinuz* sudo apt-get install linux-image sudo update-grub Reboot


0

Taken from Ubuntu Forums - Unable to remove bad package installed from .deb: Let's modify the post to match your package: Can you print the output of cat /var/lib/dpkg/status | grep wine? dpkg -P wine If this does not work: dpkg -L wine. This will list the files that wine uses. Navigate to: /var/lib/dpkg/info. Delete the file: wine.postrm, possibly wine-...


1

I got the 64-bit .deb file from preyproject.com/blog/page/4?lang=es%2Fdownload then to install it go to the directory containing .deb file and run sudo dpkg -i prey_1.5.0_amd64.deb in terminal,the installation will start.


0

Here is a script named downloadthis. #!/bin/bash for i in $(apt-cache show $1 | grep Version | sed 's/^Version..//g') do apt-get download $1 dpkg-deb -x "$1"*"$i"*deb $2 done Don't forget to make it executable. Here is an example of use: ./downloadthis libopencv-dev The script will create a directory named libopencv-dev in your home directory. You ...


0

You can try parsing the output of apt-get download --print-uris, which just prints information about the download without actually downloading it: $ apt-get download vim --print-uris 'http://ppa.launchpad.net/pi-rho/dev/ubuntu/pool/main/v/vim/vim_7.4.1907-1~ppa1~x_amd64.deb' vim_2%3a7.4.1907-1~ppa1~x_amd64.deb 1073208 SHA256:...


0

Make the script: PACKAGE=packagename apt-get download $PACKAGE dpkg-deb -x $PACKAGE*.deb /my/path This should work for all packages. It may or may not work in PPA's or external repositories.


0

Turns out that installing git-all breaks Ubuntu 16.04. Found the fix here: Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while processing: runit


0

Type in terminal: dpkg --configure -a apt autoremove apt -f install apt update apt upgrade


1

As Google have stopped support for Chrome and 12.04, your best solution is to install Chromium instead: wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo apt-get update sudo apt-get install chromium-browser


2

No, you don't have to remove previously installed one. However, it depends on the package quality. Myself I don't uninstall first only if I already faced a problem. The normal update installation just remove the previous keeping the configuration files then install new one. dpkg will ask you to overwrite or keep previous config file if it is in /etc and ...


0

I got same issue when I followed following tutorial to install mysql 5.6 on ubuntu 14. I had installed Ubuntu using vagrant. I had assigned only 512 MB to the virtual machine. To fix it I did following things. 1) Increased the virtual machine Memory to 1024MB config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the ...


1

if you are trying to install a specific version of openssh server you can do this through APT you don't have to do it with dpkg. sudo apt-get install openssh-client=1%3a5.3p1-3ubuntu7:i386 This way any dependencies (such as libssl) will be installed for you by APT. I would check the format of the version string as it looks a bit wierd.


1

The resolve is sometimes not that easy, especially if apport itself is involved, here is the way I would approach it: First as mentioned bring your apt list up to speed with: sudo apt-get update Now onto fixing the problem itself: sudo apt-get install --reinstall apport sudo apt-get -f install sudo apt-get dist-upgrade And if this is still not enough ...



Top 50 recent answers are included