Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Syntax error

For help or questions about 64-bit version of MEPIS, this is the forum to use.
Post Reply
Message
Author
rada-07
Forum Novice
Forum  Novice
Posts: 7
Joined: Sun May 14, 2017 9:14 am

Syntax error

#1 Post by rada-07 » Tue Mar 06, 2018 3:39 pm

The Mx 17 when you open Synaptic and enter your password, writes:
E: Syntax error /etc/apt/apt.conf.d / 51unattended-upgrades-mx: 13: extra characters after value
In the terminal after apt, or apt-get update says:
E: Syntax error /etc/apt/apt.conf.d / 51unattended-upgrades-mx: 13: extra characters after value
In the terminal after aptitude update:

Code: Select all

root@mx17:/home/rada # aptitude update
E: Syntax error /etc/apt/apt.conf.d / 51unattended-upgrades-mx: 13: extra characters after value
From the cache http://ftp.by.debian.org/debian Jessie-updates InRelease
Ignore http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch Jessie InRelease 
Ignore http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo Jessie InRelease 
From the cache http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch stretch Release 
Ignore http://ftp.us.debian.org/debian Jessie InRelease 
From the cache http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo stretch Release
From the cache http://ftp.us.debian.org/debian stretch Release 
From the cache http://repo.yandex.ru/yandex-disk/deb stable InRelease
Ignore http://download.opensuse.org/repositories/home:/stevenpusser/Debian_9.0 InRelease 
From the cache http://download.opensuse.org/repositories/home:/stevenpusser/Debian_9.0 Release
From the cache http://security.debian.org Jessie/updates InRelease 
root@mx17:/home/rada#
What to do?

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 4353
Joined: Wed Jul 12, 2006 4:05 pm

Re: Syntax error

#2 Post by timkb4cq » Tue Mar 06, 2018 5:49 pm

Please open your file manager, navigate to /etc/apt/apt.conf.d/ and click on 51unattended-upgrades-mx
It will open in a text editor. Copy & paste the contents back here.
This appears to be a new issue with apt-notifier and the contents will help the developer figure out and fix the problem.

If you then Right-click and select Open root Thunar here you can delete the 51unattended-upgrades-mx file and apt-get update should work again, although the problem could recur later depending on how that file got the extra characters in it to begin with.
MSI 970A-G43 MB, AMD FX-6300 (six core), 16GB RAM, GeForce 730, Samsung 850 EVO 250GB SSD, Seagate Barracuda XT 3TB

User avatar
kmathern
Forum Veteran
Forum Veteran
Posts: 9318
Joined: Wed Jul 12, 2006 2:26 pm

Re: Syntax error

#3 Post by kmathern » Tue Mar 06, 2018 6:35 pm

The output of 'inxi -r' will also be helpful.

rada-07
Forum Novice
Forum  Novice
Posts: 7
Joined: Sun May 14, 2017 9:14 am

Re: Syntax error

#4 Post by rada-07 » Tue Mar 06, 2018 10:14 pm

Thanks for the reply!
In /etc/apt / apt.conf.d / file 51 unattended-updates - msiu not, but there is file 51 unattended-upgrades-mx

Code: Select all

Unattended-Upgrade::Origins-Pattern {
//
// 100 /var/lib/dpkg/status
// "a=now";
//
// 500 http://repo.yandex.ru/yandex-disk/deb stable/main i386 Packages
all,o=Yandex Disk Archive,n=stable,l=Ubuntu/Debian,c=main
//
// 500 http://repo.yandex.ru/yandex-disk/deb stable/main amd64 Packages
all,o=Yandex Disk Archive,n=stable,l=Ubuntu/Debian,c=main
//
// 500 http://download.opensuse.org/repositories/home:/stevenpusser/Debian_9.0 Packages
"o=obs://build.opensuse.org/home:stevenpusser/Debian_9.0,n=Debian_9.0,l=home:stevenpusser,c=";
//
// 500 http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo stretch/non-free i386 Packages
"o=MX repository,a=mx,n=stretch,l=MX repository,c=non-free";
//
// 500 http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo stretch/non-free amd64 Packages
"o=MX repository,a=mx,n=stretch,l=MX repository,c=non-free";
//
// 500 http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo stretch/main i386 Packages
"o=MX repository,a=mx,n=stretch,l=MX repository,c=main";
//
// 500 http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo stretch/main amd64 Packages
"o=MX repository,a=mx,n=stretch,l=MX repository,c=main";
//
// 500 http://security.debian.org stretch/updates/non-free i386 Packages
"o=Debian,a=stable,n=stretch,l=Debian-Security,c=non-free";
//
// 500 http://security.debian.org stretch/updates/non-free amd64 Packages
"o=Debian,a=stable,n=stretch,l=Debian-Security,c=non-free";
//
// 500 http://security.debian.org stretch/updates/contrib i386 Packages
"o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib";
//
// 500 http://security.debian.org stretch/updates/contrib amd64 Packages
"o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib";
//
// 500 http://security.debian.org stretch/updates/main i386 Packages
"o=Debian,a=stable,n=stretch,l=Debian-Security,c=main";
//
// 500 http://security.debian.org stretch/updates/main amd64 Packages
"o=Debian,a=stable,n=stretch,l=Debian-Security,c=main";
//
// 500 http://ftp.us.debian.org/debian stretch/non-free i386 Packages
"o=Debian,a=stable,n=stretch,l=Debian,c=non-free";
//
// 500 http://ftp.us.debian.org/debian stretch/non-free amd64 Packages
"o=Debian,a=stable,n=stretch,l=Debian,c=non-free";
//
// 500 http://ftp.us.debian.org/debian stretch/contrib i386 Packages
"o=Debian,a=stable,n=stretch,l=Debian,c=contrib";
//
// 500 http://ftp.us.debian.org/debian stretch/contrib amd64 Packages
"o=Debian,a=stable,n=stretch,l=Debian,c=contrib";
//
// 500 http://ftp.us.debian.org/debian stretch/main i386 Packages
"o=Debian,a=stable,n=stretch,l=Debian,c=main";
//
// 500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
"o=Debian,a=stable,n=stretch,l=Debian,c=main";
//
// 500 http://ftp.by.debian.org/debian stretch-updates/main i386 Packages
"o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main";
//
// 500 http://ftp.by.debian.org/debian stretch-updates/main amd64 Packages
"o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main";
//
// 500 http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch stretch/main i386 Packages
"o=repo.antixlinux.com,a=stretch,n=stretch,l=antiX repository,c=main";
//
// 500 http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch stretch/main amd64 Packages
"o=repo.antixlinux.com,a=stretch,n=stretch,l=antiX repository,c=main";
};
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
Unattended-Upgrade::AutoFixInterruptedDpkg "true"; //default is "true"
Unattended-Upgrade::MinimalSteps "true"; //default is "false"
//Unattended-Upgrade::InstallOnShutdown "true";
//Unattended-Upgrade::Mail "root";
//Unattended-Upgrade::MailOnlyOnError "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true"; //default is "false" 
//Unattended-Upgrade::Automatic-Reboot "false";
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
//Acquire::http::Dl-Limit "70";
The result of inxi -r

Code: Select all

rada@mx17:~
$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list.d/antix.list
           deb http://ftp.acc.umu.se/mirror/mxlinux.org/packages/antix/stretch/ stretch main
           Active apt sources in file: /etc/apt/sources.list.d/debian-stable-updates.list
           deb http://ftp.by.debian.org/debian/ stretch-updates main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/debian.list
           deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
           deb http://security.debian.org/ stretch/updates main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/mx.list
           deb http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo/ stretch main non-free
           Active apt sources in file: /etc/apt/sources.list.d/palemoon.list
           deb http://download.opensuse.org/repositories/home:/stevenpusser/Debian_9.0/ /
           Active apt sources in file: /etc/apt/sources.list.d/yandex-disk.list
           deb http://repo.yandex.ru/yandex-disk/deb/ stable main
rada@mx17:~
$ 
After removal of 51 unattended-upgrades-mx problem has been solved. Open Synaptic, in a terminal apt update runs. Thank You!

User avatar
kmathern
Forum Veteran
Forum Veteran
Posts: 9318
Joined: Wed Jul 12, 2006 2:26 pm

Re: Syntax error

#5 Post by kmathern » Tue Mar 06, 2018 11:10 pm

I see the problem, it's with the "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" entry.

In apt-cache policy {like shown below} the value for the 'v=...' field is 'all', the script was looking for and filtering/snipping out the 'v=...' fields with numeric values, it wasn't expecting alpha characters and as a result the origin pattern lines for that repo entry are misformatted.

I think have a fix that will work to filter/snip out the 'v=...' fields with upper and lowercase alphas (a-z A-Z), numerics (0-9) and decimal point(s). If they include anything else though it would still fail. Does anybody know what the valid values are for the 'v=...' field?
$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://repo.yandex.ru/yandex-disk/deb stable/main i386 Packages
release v=all,o=Yandex Disk Archive,n=stable,l=Ubuntu/Debian,c=main,b=i386
origin repo.yandex.ru
500 http://repo.yandex.ru/yandex-disk/deb stable/main amd64 Packages
release v=all,o=Yandex Disk Archive,n=stable,l=Ubuntu/Debian,c=main,b=amd64
origin repo.yandex.ru
500 http://download.opensuse.org/repositories/home:/stevenpusser/Debian_9.0 Packages
release o=obs://build.opensuse.org/home:stevenpusser/Debian_9.0,n=Debian_9.0,l=home:stevenpusser,c=
origin download.opensuse.org
500 http://mxrepo.com/mx/repo stretch/non-free i386 Packages
release v=17.0,o=MX repository,a=mx,n=stretch,l=MX repository,c=non-free,b=i386
origin mxrepo.com
500 http://mxrepo.com/mx/repo stretch/non-free amd64 Packages
release v=17.0,o=MX repository,a=mx,n=stretch,l=MX repository,c=non-free,b=amd64
origin mxrepo.com
500 http://mxrepo.com/mx/repo stretch/main i386 Packages
release v=17.0,o=MX repository,a=mx,n=stretch,l=MX repository,c=main,b=i386
origin mxrepo.com
500 http://mxrepo.com/mx/repo stretch/main amd64 Packages
release v=17.0,o=MX repository,a=mx,n=stretch,l=MX repository,c=main,b=amd64
origin mxrepo.com
500 http://security.debian.org stretch/updates/non-free i386 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=non-free,b=i386
origin security.debian.org
500 http://security.debian.org stretch/updates/non-free amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=non-free,b=amd64
origin security.debian.org
500 http://security.debian.org stretch/updates/contrib i386 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=i386
origin security.debian.org
500 http://security.debian.org stretch/updates/contrib amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
origin security.debian.org
500 http://security.debian.org stretch/updates/main i386 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=i386
origin security.debian.org
500 http://security.debian.org stretch/updates/main amd64 Packages
release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://ftp.us.debian.org/debian stretch/non-free i386 Packages
release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=i386
origin ftp.us.debian.org
500 http://ftp.us.debian.org/debian stretch/non-free amd64 Packages
release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=amd64
origin ftp.us.debian.org
500 http://ftp.us.debian.org/debian stretch/contrib i386 Packages
release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=i386
origin ftp.us.debian.org
500 http://ftp.us.debian.org/debian stretch/contrib amd64 Packages
release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=amd64
origin ftp.us.debian.org
500 http://ftp.us.debian.org/debian stretch/main i386 Packages
release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=i386
origin ftp.us.debian.org
500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin ftp.us.debian.org
500 http://ftp.us.debian.org/debian stretch-updates/main i386 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=i386
origin ftp.us.debian.org
500 http://ftp.us.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin ftp.us.debian.org
500 http://repo.antixlinux.com/stretch stretch/main i386 Packages
release v=3.1,o=repo.antixlinux.com,a=stretch,n=stretch,l=antiX repository,c=main,b=i386
origin repo.antixlinux.com
500 http://repo.antixlinux.com/stretch stretch/main amd64 Packages
release v=3.1,o=repo.antixlinux.com,a=stretch,n=stretch,l=antiX repository,c=main,b=amd64
origin repo.antixlinux.com
Pinned packages:

User avatar
kmathern
Forum Veteran
Forum Veteran
Posts: 9318
Joined: Wed Jul 12, 2006 2:26 pm

Re: Syntax error

#6 Post by kmathern » Wed Mar 07, 2018 3:29 pm

@rada-07,

A daily cronjob recreates the /etc/apt/apt.conf.d /51unattended-upgrades-mx file, so the syntax error might reappear. (From some of my testing, it looks like the syntax error problem appears with every other run of the cronjob.)

An updated apt-notifier package should be showing up soon in the repos to fix the syntax error problem, use Synaptic to install it.

When you try to open Synaptic, if it displays the syntax error message like it did before, remove the /etc/apt/apt.conf.d /51unattended-upgrades-mx file again, and then try opening Synaptic again.

After you get into Synaptic, do a 'Reload' and then update to the latest version of the apt-notifier.

rada-07
Forum Novice
Forum  Novice
Posts: 7
Joined: Sun May 14, 2017 9:14 am

Re: Syntax error

#7 Post by rada-07 » Thu Mar 08, 2018 12:25 am

kmathern!
Thanks for the reply. Yes, I see cronjob created in /etc/apt/apt.conf.d 51unattended-upgrades-mx file.

Code: Select all

Unattended-Upgrade::Origins-Pattern {
// Shipped without a Origins-Pattern, will be populated later by the
// update-Origins-Pattern script which is run by cronjob.
};
Unattended-Upgrade::Package-Blacklist {
//	"vim";
//	"libc6";
//	"libc6-dev";
//	"libc6-i686";
};
Unattended-Upgrade::AutoFixInterruptedDpkg "true";     //default is "true"
Unattended-Upgrade::MinimalSteps "true";               //default is "false"
//Unattended-Upgrade::InstallOnShutdown "true";
//Unattended-Upgrade::Mail "root";
//Unattended-Upgrade::MailOnlyOnError "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true"; //default is "false" 
//Unattended-Upgrade::Automatic-Reboot "false";
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
//Acquire::http::Dl-Limit "70";
Updated today apt-notifier:amd64 (18.03.03mx17+4, 18.03.07mx17+1). The error did not appear.
Synaptic works, in the terminal at apt update everything is updated.
What to do with the repository yandex.ru/yandex-disk/deb/ stable main, disable ?
Maybe he's not the problem. It was plugged in during installation MX17 Final and until 06.03.18 error did not occur.

User avatar
kmathern
Forum Veteran
Forum Veteran
Posts: 9318
Joined: Wed Jul 12, 2006 2:26 pm

Re: Syntax error

#8 Post by kmathern » Thu Mar 08, 2018 1:30 pm

rada-07 wrote:kmathern!
Thanks for the reply. Yes, I see cronjob created in /etc/apt/apt.conf.d 51unattended-upgrades-mx file.

Code: Select all

Unattended-Upgrade::Origins-Pattern {
// Shipped without a Origins-Pattern, will be populated later by the
// update-Origins-Pattern script which is run by cronjob.
};
Unattended-Upgrade::Package-Blacklist {
//	"vim";
//	"libc6";
//	"libc6-dev";
//	"libc6-i686";
};
Unattended-Upgrade::AutoFixInterruptedDpkg "true";     //default is "true"
Unattended-Upgrade::MinimalSteps "true";               //default is "false"
//Unattended-Upgrade::InstallOnShutdown "true";
//Unattended-Upgrade::Mail "root";
//Unattended-Upgrade::MailOnlyOnError "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true"; //default is "false" 
//Unattended-Upgrade::Automatic-Reboot "false";
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
//Acquire::http::Dl-Limit "70";
Updated today apt-notifier:amd64 (18.03.03mx17+4, 18.03.07mx17+1). The error did not appear.
Synaptic works, in the terminal at apt update everything is updated.
I'm guessing that the cronjob hasn't run yet on your system since you updated the apt-notifier, it might take a day or so. If you don't want to wait for the cronjob to populate the Origins-Pattern, you can run the following:

Code: Select all

sudo update-Origins-Pattern -d
What to do with the repository yandex.ru/yandex-disk/deb/ stable main, disable ?
Maybe he's not the problem. It was plugged in during installation MX17 Final and until 06.03.18 error did not occur.
The yandex repo doesn't cause a problem anymore, so you should be able to have it enabled.

rada-07
Forum Novice
Forum  Novice
Posts: 7
Joined: Sun May 14, 2017 9:14 am

Re: Syntax error

#9 Post by rada-07 » Thu Mar 08, 2018 10:56 pm

Thank you!
Let's assume that the problem with the syntax error is solved!

Post Reply

Return to “64-bit Newbies”