Hot answers tagged

6

First of all, never edit /etc/sudoers manually, always use visudo. Your problem was a syntax error in the file /etc/sudoers.d/90-cloudimg-ubuntu but it is now a malformed /etc/sudoers. So, to fix it (now that you have removed any changes you may have made), run pkexec visudo and make the file look like this: # # This file MUST be edited with the 'visudo' ...


4

The mistake is that you used instructions on how to install java on Debian. Not Ubuntu. As root, go to this folder: /etc/apt/sources.list.d Locate this file: webupd8team-java.list and delete it. Execute sudo apt-get update for the system to remove any reference to that update server. Execute add-apt-repository ppa:webupd8team/java to add the correct ppa ...


3

Check the contents of /etc/apt/sources.list.d/canonical-partners.list if they as well exist in /etc/apt/sources.list. If yes remove either the double lines in /etc/apt/sources.list or your remove that canonical-partner.list file. Second might be an easier solution. sudo rm /etc/apt/sources.list.d/canonical_partner.list


2

Use chdist. This command allows you to run apt-get and apt-cache as usual, but for a different release of Ubuntu (or Debian or in fact any other Debian-derived distribution). It also provides a wrapper around grep-dctrl which easily allows you to search and report on metadata fields.


2

OP solved the problem: ...I found the problem. I was using the wrong python since I had installed anaconda. Removing anaconda make the system works An alternative way without uninstalling Anaconda, reset python link to default (pointing to python2 from repository) $ ls -l /usr/bin/python lrwxrwxrwx 1 root root 9 Dec 10 2015 /usr/bin/python -> ...


2

The Backports repository is set to not be installed from in a default instance of Ubuntu (the priority of 500 is higher than 100, which is shown in your output; this has also been the standard for some time now). To make all the dependencies install from the trusty-backports repository, we have to do one of two things to make apt know what we want it to do (...


2

You have quite a serious problem. The only official update server on your system seems to be the archive.canonical.com. All other servers listed above have been placed there manually after the inital system installation. The missing update server's name should be <country-code>.archive.ubuntu.com (for example us.archive.ubuntu.com) and it's not ...


1

First I would check to see what package APT is configured to install (out of the available options), you can do this with: apt-cache policy nginx e.g. % apt-cache policy nginx nginx: Installed: 1.10.0-0ubuntu0.16.04.2 Candidate: 1.10.0-0ubuntu0.16.04.2 Version table: *** 1.10.0-0ubuntu0.16.04.2 500 500 http://nz.archive.ubuntu.com/ubuntu ...


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


1

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


1

After hours of struggle I solved it. I had to remove the dependencies via dpkg -r The full set of actions were: sudo dpkg -r libwine:i386 sudo dpkg -r wine1.6-i386 sudo dpkg -r kali-linux-full sudo dpkg -r regripper sudo dpkg -r sqldict sudo dpkg -r ollydbg sudo dpkg -r wine After that, everything went back to normal. Hope this helps someone helps ...


1

There should be no trusty-security or trusty-updates entry for the extras repository. If you go to http://extras.ubuntu.com/ubuntu/dists/ in your web browser, you will see that trusty-security and trusty-updates are not listed. Run the following commands to fix the issue: sudo sed -i 's|deb http://extras.ubuntu.com/ubuntu trusty-security|#deb http://...


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


1

Something is wrong with your package management. Please try apt-get -f install If this does nothing try dpkg -i /var/cache/apt/packages/openssh-server*.deb Post error messages and content of your /etc/apt/sources.list and sources.list.d/*.list files.


1

The problem appears to be the universe and multiverse xenial-security repos are corrupt. I was able to fix the problem by editing /etc/apt/sources/list and commenting out these lines: #deb http://ports.ubuntu.com/ubuntu-ports xenial-security universe #deb-src http://ports.ubuntu.com/ubuntu-ports xenial-security universe #deb http://ports.ubuntu.com/ubuntu-...


1

Found the answer here. You need to use the --system-site-packages option when creating your virtualenv if you want this to work. So in my example the correct way to do it would be virtualenv --system-site-packages -p python3 ./test Thanks for helping guys!


1

Your file /etc/apt/sources.list.d/canonical_partner.list has the same repository configured twice. You can either edit file and remove the duplicated line(2nd line of the file) or remove this reference for being used in graphical mode by removing/unchecking them. Editing the file for removing duplicated repositories Open terminal: ctrl+alt+t Write sudo ...


1

This has been fixed yesterday (2016/06/28) ; now you can install directly biber (it will install version 2.4; be sure to do an sudo apt-get update before). It will pull a lot of perl libraries, but it will not try to remove half of your LaTeX installation. [romano:~] % apt-cache policy biber biber: Installed: 2.4-1ubuntu1.16.04.1 Candidate: 2.4-...


1

No. Automatic update is not supported by umake. You need to reinstall software when a new version becomes available (unless the software package itself has built in update functionality). Umake simply downloads the latest version available from the official websites and doesn't give you much option in terms of versioning (besides sometimes having a stable ...


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



Only top voted, non community-wiki answers of a minimum length are eligible