Home > apt > E: Syntax error /etc/apt/apt.conf.d/00aptitude:4: Extra junk at end of file

E: Syntax error /etc/apt/apt.conf.d/00aptitude:4: Extra junk at end of file

November 11Hits:8
Advertisement

ubuntu 14.04 Update manager: “A problem occurred when checking for the updates that is what appear when using terminal

Answers

Each line in the 00aptitude file should end with a semicolon character.

Run the command man apt.conf from the terminal and under the DESCRIPTION and SYNTAX headings it says:

apt.conf is the main configuration file for the APT suite of tools, all tools make use of the configuration file and a common command-line parser to provide a uniform environment.
...
APT::Get::Assume-Yes "true";. The quotation marks and trailing semicolon are required.

To edit the 00aptitude file use the command:

sudo nano /etc/apt/apt.conf.d/00aptitude

Edit the 00aptitude file so that instead of:

Aptitude::Get-Root-Command "sudo:/usr/bin/sudo";
Acquire::Languages "none"

It is changed so that it is:

Aptitude::Get-Root-Command "sudo:/usr/bin/sudo";
Acquire::Languages "none";

The only thing you have to change is to add a semicolon character to the end of the second line.

Nano is very easy to use. The instructions for using the nano editor are always found at the bottom of every page. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.

Tags:apt

Related Articles

  • E: Syntax error /etc/apt/apt.conf.d/00aptitude:4: Extra junk at end of fileNovember 11

    ubuntu 14.04 Update manager: "A problem occurred when checking for the updates that is what appear when using terminal --------------Solutions------------- Each line in the 00aptitude file should end with a semicolon character. Run the command man ap

  • "SystemError: E:Syntax error /etc/apt/apt.conf.d/70debconf:4: Extra junk at end of file" causing package manager to break December 20

    This question already has an answer here: How to solve "Extra junk at end of file" when using apt? 1 answer I have a problem with ubuntu software center. When I try to launch it from the dock the icon blinks and then closes. If I try to launch i

  • How to solve "Extra junk at end of file" when using apt?September 6

    I'm trying to configure some proxies for a guest virtual machine and now I'm getting: sudo apt-get update E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file The content of the file is: cat /etc/apt/apt.conf.d/95proxy Acquire::ht

  • How to configure proxy settings "syntax error *extra junk at end of file" February 14

    This question already has an answer here: How to solve "Extra junk at end of file" when using apt? 1 answer I got the following error after configuring proxy in /etc/apt/apt.conf as Acquire::http::proxy http://192.168.96.0:8080: e: syntax error

  • How to solve "Extra junk at end of file" syntax error in "01autoremove-kernels" file? // invalid characters

    How to solve "Extra junk at end of file" syntax error in "01autoremove-kernels" file? // invalid charactersJuly 6

    I've read How to solve "Extra junk at end of file" when using apt? and though it's a similar problem, it apparently has a different cause since, looking at the contents of the file, unlike in the earlier Q&A it seems far from obvious that ad

  • Apache starts with "Syntax error on /etc/httpd/conf/httpd.conf: Invalid command 'remove'"September 17

    After I changed php.ini max file upload size and the max post size, restarting apache shows the error in the title. Why? And how to resolve it? # vi /etc/php.ini # service httpd restart # service httpd start Starting httpd: Syntax error on line 304 o

  • Syntax error in apache php5.conf

    Syntax error in apache php5.confApril 4

    help! Syntax error on line 3 of /etc/apache2/mods-enabled/php5.conf: SetHandler takes one argument, a handler name that overrides any other configured handler Action 'configtest' failed. The Apache error log may have more information. failed! I use,

  • 'Syntax error' while setting sudo.conf askpass variable with visudoDecember 10

    I want to set askpass program for sudo, i've made file /etc/sudoers.d/path-askpass with following content: # Path to askpass program Path askpass /usr/bin/ssh-askpass File was edit with visudo, which complains on syntax error at line 3, whereas i can

  • How to solve a syntax error while updating? September 6

    I'm trying to configure some proxies for a guest virtual machine and now I'm getting: sudo apt-get update E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file The content of the file is: cat /etc/apt/apt.conf.d/95proxy Acquire::ht

  • Can someone help me with errors in my pf.conf file? OS 10.7May 21

    I keep getting errors about the order of my rules and that there are syntax errors in my pf.conf file, and after troubleshooting for days, I thought I'd ask for some help. Please take a look and let me know if you have suggestions: # FINGERPRINT CONN

  • Syntax error in Python - Search Strings Generator May 5

    Why do I receive a syntax error when printing a string in Python 3? >>> print "hello World" File "<stdin>", line 1 print "hello World" ^ SyntaxError: invalid syntax --------------Solutions------------- In Pytho

  • Print function giving Syntax error after while in Python 3.4 May 5

    Why do I receive a syntax error when printing a string in Python 3? >>> print "hello World" File "<stdin>", line 1 print "hello World" ^ SyntaxError: invalid syntax --------------Solutions------------- In Pytho

  • PhpStorm does not show syntax errors of JavaScript in .php filesFebruary 12

    I am using PhpStorm 10.0.3. I have test.php file. Inside this file I have some JavaScript. What I found is, if there are any JavaScript syntax errors it does not show. For example: image.setAttribute("data-src2", "example.com/1.jpg"; n

  • apt-get Syntax error: end of file unexpectedMay 15

    Trying to run any apt-get commands from the terminal gives me a syntax error. Synaptic and Software Center work fine (Ubuntu 13.04). For example: sudo apt-get install mpack /usr/bin/apt-get: 1: /usr/bin/apt-get: Syntax error: end of file unexpected I

  • Getting error running sudo apt-get -f installJanuary 23

    E: Waited for /usr/sbin/dpkg-preconfigure --apt || true but it wasn't there E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true I know this question has been asked before but the answer given returns an error. Ubuntu version 10.04.3 $

  • have a problem with Syntax error on line 221 of /etc/httpd/conf/httpd.conf:August 4

    I am moving all my files from old server to the new one, i installed apache, but when i try to run it i am getting this error. Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/

  • Accidentally deleted /etc/apt/apt.conf.dMay 7

    I accidentally deleted the apt.conf.d folder and cant install (use the apt-get) anything =( . When I try to locate the apt.conf.d in the apt folder , its no longer there . EDIT: When I open the apt folder only sources.list can be found ... :( So that

  • click-apparmor errors while upgrading apt-get?October 6

    While I am trying to update apt-get, I get the following errors. sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following

  • apache just tells me there is a syntax error when I reload the conf filesMarch 8

    I've been modifying my server's conf files and when I reload them, it just says there is an error, but it doesn't tell me where the error is. Is there a log file this is recorded to? or how else could I know where the syntax error is coming from? ---

  • What happened to /etc/apt/apt.conf?April 12

    I was browsing through the apt folder to try my proxy settings and I was unable to find the apt.conf file in Ubuntu 11.04. Is there any alternative file for it? Adding proxy settings to 99-synaptic in apt.conf.d does not help as it gets overwritten e

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 15 q. 1.337 s.