Bug#818249: line 14: all `Format' sections are invalid.

2016-05-20 Thread Michael Biebl
Control: tags -1 - moreinfo unreproducible

On Wed, 16 Mar 2016 17:35:00 +0100 Manolo =?UTF-8?B?RMOtYXo=?=
 wrote:
> On Wednesday, 16 Mar 2016 at 15:52 UTC
> Osamu Aoki wrote:
> 
> > Hi,
> > 
> > On Wed, Mar 16, 2016 at 12:16:56AM +0800, 積丹尼 Dan Jacobson wrote:
> > > # install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
> > > Warning in `/usr/share/doc-base/debian-reference-en', line 10: file mask 
> > > `/usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz' does 
> > > not match any files.
> > > Warning in `/usr/share/doc-base/debian-reference-en', line 14: file 
> > > `/usr/share/doc/debian-reference/docs/index.en.html' does not exist.
> > > Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
> > > sections are invalid.
> > > /usr/share/doc-base/debian-reference-en: Fatal error found, the file 
> > > won't be registered.  
> > 
> > $ install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
> > /usr/share/doc-base/debian-reference-en: No problems found.
> > $ dpkg -l debian-reference-en
> > Desired=Unknown/Install/Remove/Purge/Hold
> > | 
> > Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> > ||/ Name   Version  Architecture Description
> > +++-==---=
> > ii  debian-referen 2.59 all  Debian system administration 
> > guid
> > $ 
> > 
> > Regards,
> > 
> > Osamu
> 
> Hi,
> 
> I think the problem is that it's possible to have a system with
> debian-reference-en installed and debian-reference not installed
> (without any system package complain). But the former needs the latter.
> 
> dpkg -L debian-reference
> /.
> /usr
> /usr/share
> /usr/share/doc
> /usr/share/doc/debian-reference
> /usr/share/doc/debian-reference/changelog.gz
> /usr/share/doc/debian-reference/copyright
> /usr/share/doc/debian-reference/docs
> 

Since we have a reproducer now, removing the moreinfo and unreproducible
tag.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#818249: line 14: all `Format' sections are invalid.

2016-03-19 Thread Osamu Aoki
Hi,

On Wed, Mar 16, 2016 at 12:16:56AM +0800, 積丹尼 Dan Jacobson wrote:
> # install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
> Warning in `/usr/share/doc-base/debian-reference-en', line 10: file mask 
> `/usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz' does not 
> match any files.
> Warning in `/usr/share/doc-base/debian-reference-en', line 14: file 
> `/usr/share/doc/debian-reference/docs/index.en.html' does not exist.
> Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
> sections are invalid.
> /usr/share/doc-base/debian-reference-en: Fatal error found, the file won't be 
> registered.

$ install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
/usr/share/doc-base/debian-reference-en: No problems found.
$ dpkg -l debian-reference-en
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   Version  Architecture Description
+++-==---=
ii  debian-referen 2.59 all  Debian system administration guid
$ 

Regards,

Osamu



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-19 Thread 積丹尼 Dan Jacobson
> "MD" == Manolo Díaz  writes:

MD> I think the problem is that it's possible to have a system with
MD> debian-reference-en installed and debian-reference not installed
MD> (without any system package complain). But the former needs the latter.

Yes, I don't have debian-reference installed. I don't need all the other
languages. So that is where the bug lies!



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-19 Thread Manolo Díaz
On Wednesday, 16 Mar 2016 at 15:52 UTC
Osamu Aoki wrote:

> Hi,
> 
> On Wed, Mar 16, 2016 at 12:16:56AM +0800, 積丹尼 Dan Jacobson wrote:
> > # install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
> > Warning in `/usr/share/doc-base/debian-reference-en', line 10: file mask 
> > `/usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz' does not 
> > match any files.
> > Warning in `/usr/share/doc-base/debian-reference-en', line 14: file 
> > `/usr/share/doc/debian-reference/docs/index.en.html' does not exist.
> > Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
> > sections are invalid.
> > /usr/share/doc-base/debian-reference-en: Fatal error found, the file won't 
> > be registered.  
> 
> $ install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
> /usr/share/doc-base/debian-reference-en: No problems found.
> $ dpkg -l debian-reference-en
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name   Version  Architecture Description
> +++-==---=
> ii  debian-referen 2.59 all  Debian system administration guid
> $ 
> 
> Regards,
> 
> Osamu

Hi,

I think the problem is that it's possible to have a system with
debian-reference-en installed and debian-reference not installed
(without any system package complain). But the former needs the latter.

dpkg -L debian-reference
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/debian-reference
/usr/share/doc/debian-reference/changelog.gz
/usr/share/doc/debian-reference/copyright
/usr/share/doc/debian-reference/docs

/usr/share/doc/debian-reference/README

Kind regards,
-- 
Manolo Díaz



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread Manolo Díaz
On Tuesday, 15 Mar 2016 at 18:39 UTC
積丹尼 Dan Jacobson wrote:

> Maybe there is another package that has already created the file
> structure, but I don't have it installed. Thus I get the bug and you don't.


OK. I finally managed to reproduce your bug. Could you please check
that the debian-reference package isn't installed in your system?

Perhaps debian-reference-common should depends on debian-reference.

Kind regards,
-- 
Manolo Díaz



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread 積丹尼 Dan Jacobson
Maybe there is another package that has already created the file
structure, but I don't have it installed. Thus I get the bug and you don't.



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread 積丹尼 Dan Jacobson
$ diffoscope debian-reference-en_2.5* | tail 
│   │   ├── ./usr/share/doc-base/debian-reference-en
│   │   │ @@ -2,13 +2,13 @@
│   │   │  Title: Debian Reference (en)
│   │   │  Author: Osamu Aoki
│   │   │  Abstract: This Debian Reference covers many aspects of system
│   │   │   administration through shell-command examples. (English)
│   │   │  Section: Debian
│   │   │  
│   │   │  Format: text
│   │   │ -Files: /usr/share/debian-reference/debian-reference.en.txt.gz
│   │   │ +Files: 
/usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz
│   │   │  
│   │   │  Format: HTML
│   │   │ -Index: /usr/share/debian-reference/index.en.html
│   │   │ -Files: /usr/share/debian-reference/*.en.html
│   │   │ +Index: /usr/share/doc/debian-reference/docs/index.en.html
│   │   │ +Files: /usr/share/doc/debian-reference/docs/*.en.html



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread 積丹尼 Dan Jacobson
# set debian-reference-common debian-reference-en
# dpkg -P $@
(Reading database ... 149361 files and directories currently installed.)
Removing debian-reference-en (2.59) ...
Purging configuration files for debian-reference-en (2.59) ...
Removing debian-reference-common (2.59) ...
Purging configuration files for debian-reference-common (2.59) ...
Processing triggers for doc-base (0.10.7) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59) ...
Processing triggers for desktop-file-utils (0.22-1) ...
# dpkg -i debian-reference-*2.59*
Selecting previously unselected package debian-reference-common.
(Reading database ... 149308 files and directories currently installed.)
Preparing to unpack debian-reference-common_2.59_all.deb ...
Unpacking debian-reference-common (2.59) ...
Selecting previously unselected package debian-reference-en.
Preparing to unpack debian-reference-en_2.59_all.deb ...
Unpacking debian-reference-en (2.59) ...
Setting up debian-reference-common (2.59) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Setting up debian-reference-en (2.59) ...
Processing triggers for mime-support (3.59) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
sections are invalid.
Note: `install-docs --verbose --check file_name' may give more details about 
the above error.
Registering documents with scrollkeeper...



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread Manolo Díaz
On Tuesday, 15 Mar 2016 at 16:52 UTC
積丹尼 Dan Jacobson wrote:

> # dpkg -i debian-reference-*2.58*
> dpkg: warning: downgrading debian-reference-common from 2.59 to 2.58

[...]

> # dpkg -i debian-reference-*2.59*

[...]

I don't know if it's relevant here, but dpkg manual reads (talking about
dpkg -i)

" 5.  If another version of the same package was installed before the
new installation, execute the postrm script of the old package. Note
that this script is executed after the preinst script of the new
package, because new files are written at the same time old files are
removed."

-- 
Manolo Díaz



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread 積丹尼 Dan Jacobson
# dpkg -i debian-reference-*2.58*
dpkg: warning: downgrading debian-reference-common from 2.59 to 2.58
(Reading database ... 149361 files and directories currently installed.)
Preparing to unpack debian-reference-common_2.58_all.deb ...
Unpacking debian-reference-common (2.58) over (2.59) ...
dpkg: warning: downgrading debian-reference-en from 2.59 to 2.58
Preparing to unpack debian-reference-en_2.58_all.deb ...
Unpacking debian-reference-en (2.58) over (2.59) ...
Setting up debian-reference-common (2.58) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Setting up debian-reference-en (2.58) ...
Processing triggers for mime-support (3.59) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 changed doc-base file...
Registering documents with scrollkeeper...
# dpkg -i debian-reference-*2.59*
(Reading database ... 149361 files and directories currently installed.)
Preparing to unpack debian-reference-common_2.59_all.deb ...
Unpacking debian-reference-common (2.59) over (2.58) ...
Preparing to unpack debian-reference-en_2.59_all.deb ...
Unpacking debian-reference-en (2.59) over (2.58) ...
Setting up debian-reference-common (2.59) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Setting up debian-reference-en (2.59) ...
Processing triggers for mime-support (3.59) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 changed doc-base file...
Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
sections are invalid.
Note: `install-docs --verbose --check file_name' may give more details about 
the above error.
Registering documents with scrollkeeper...



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread Manolo Díaz
On Tuesday, 15 Mar 2016 at 16:16 UTC
積丹尼 Dan Jacobson wrote:

> # install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
> Warning in `/usr/share/doc-base/debian-reference-en', line 10: file mask 
> `/usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz' does not 
> match any files.
> Warning in `/usr/share/doc-base/debian-reference-en', line 14: file 
> `/usr/share/doc/debian-reference/docs/index.en.html' does not exist.
> Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
> sections are invalid.
> /usr/share/doc-base/debian-reference-en: Fatal error found, the file won't be 
> registered.

Hi Dan,

I find some differences. For example:

file /usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz
/usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz: gzip 
compressed data, max compression, from Unix

BTW that's the line number 9 in my file, not 10.

file /usr/share/doc/debian-reference/docs/index.en.html
/usr/share/doc/debian-reference/docs/index.en.html: XML 1.0 document, UTF-8 
Unicode text

install-docs --verbose --check  /usr/share/doc-base/debian-reference-en
/usr/share/doc-base/debian-reference-en: No problems found.

Here is my entire /usr/share/doc-base/debian-reference-en file:

Document: debian-reference-en
Title: Debian Reference (en)
Author: Osamu Aoki
Abstract: This Debian Reference covers many aspects of system
 administration through shell-command examples. (English)
Section: Debian

Format: text
Files: /usr/share/doc/debian-reference/docs/debian-reference.en.txt.gz

Format: HTML
Index: /usr/share/doc/debian-reference/docs/index.en.html
Files: /usr/share/doc/debian-reference/docs/*.en.html



-- 
Kind regards,
Manolo Díaz



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread 積丹尼 Dan Jacobson
# set debian-reference-en
# aptitude purge $@
# aptitude install $@
The following NEW packages will be installed:
  debian-reference-en  
0 packages upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/877 kB of archives. After unpacking 3,276 kB will be used.
Do you want to continue? [Y/n/?] 
Selecting previously unselected package debian-reference-en.
(Reading database ... 149338 files and directories currently installed.)
Preparing to unpack .../debian-reference-en_2.59_all.deb ...
Unpacking debian-reference-en (2.59) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
sections are invalid.
Note: `install-docs --verbose --check file_name' may give more details about 
the above error.
Registering documents with scrollkeeper...
Setting up debian-reference-en (2.59) ...



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread Manolo Díaz
On Tuesday, 15 Mar 2016 at 12:20 UTC
Osamu Aoki wrote:

> control: tags -1 moreinfo
> control: tags -1 unreproduceble
> 
> Hi,
> 
> On Tue, Mar 15, 2016 at 10:25:10AM +0800, 積丹尼 Dan Jacobson wrote:
> > Package: debian-reference-en
> > Version: 2.59
> > 
> > Processing triggers for doc-base (0.10.7) ...
> > Processing 1 changed doc-base file...
> > Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
> > sections are invalid.  
> 
> I have doc-base 0.10.7 but I can not reproduce this bug here.
> 
> $ sudo debi debian-reference_2.59_amd64.changes 
> (Reading database ... 467563 files and directories currently installed.)
> Preparing to unpack debian-reference-common_2.59_all.deb ...
> Unpacking debian-reference-common (2.59) over (2.58) ...
> Preparing to unpack debian-reference-de_2.59_all.deb ...
> Unpacking debian-reference-de (2.59) over (2.58) ...
> Preparing to unpack debian-reference-en_2.59_all.deb ...
> Unpacking debian-reference-en (2.59) over (2.58) ...
> Preparing to unpack debian-reference-fr_2.59_all.deb ...
> Unpacking debian-reference-fr (2.59) over (2.58) ...
> Preparing to unpack debian-reference-it_2.59_all.deb ...
> Unpacking debian-reference-it (2.59) over (2.58) ...
> Preparing to unpack debian-reference-ja_2.59_all.deb ...
> Unpacking debian-reference-ja (2.59) over (2.58) ...
> Preparing to unpack debian-reference-pt_2.59_all.deb ...
> Unpacking debian-reference-pt (2.59) over (2.58) ...
> Preparing to unpack debian-reference_2.59_all.deb ...
> Unpacking debian-reference (2.59) over (2.58) ...
> Setting up debian-reference-common (2.59) ...
> Processing triggers for menu (2.1.47) ...
> Processing triggers for desktop-file-utils (0.22-1) ...
> Setting up debian-reference-fr (2.59) ...
> Setting up debian-reference-it (2.59) ...
> Setting up debian-reference-ja (2.59) ...
> Setting up debian-reference-pt (2.59) ...
> Setting up debian-reference-de (2.59) ...
> Setting up debian-reference-en (2.59) ...
> Setting up debian-reference (2.59) ...
> Processing triggers for mime-support (3.59) ...
> Processing triggers for gnome-menus (3.13.3-6) ...
> Processing triggers for man-db (2.7.5-1) ...
> Processing triggers for doc-base (0.10.7) ...
> Processing 6 changed doc-base files...
> Registering documents with scrollkeeper...
> 
> I am not saying there is no problem around doc-base but the above is fact.
> 
> This file is accessed through path in which one directory is symlink.
> So there may be some problem but it is not clear what is causing problem
> at your end.
> 
> You should tell me what package uses this hook... maybe related to #780692
> 
> OK, let me install dwww ... No problem here.
> 
> I do not know what more should I do.
> 
> Osamu

Hi all,

Preparing to unpack .../debian-reference_2.59_all.deb ...
Unpacking debian-reference (2.59) over (2.59) ...
Preparing to unpack .../debian-reference-en_2.59_all.deb ...
Unpacking debian-reference-en (2.59) over (2.59) ...
Setting up debian-reference-en (2.59) ...
Setting up debian-reference (2.59) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 changed doc-base file...
Registering documents with dwww...

So I can't reproduce that bug either.

BTW, the line number 14 in /usr/share/doc-base/debian-reference-en
is an empty line and the next is EOF. What could cause that format
error?

Kind regards,
-- 
Manolo Díaz



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-15 Thread Osamu Aoki
control: tags -1 moreinfo
control: tags -1 unreproduceble

Hi,

On Tue, Mar 15, 2016 at 10:25:10AM +0800, 積丹尼 Dan Jacobson wrote:
> Package: debian-reference-en
> Version: 2.59
> 
> Processing triggers for doc-base (0.10.7) ...
> Processing 1 changed doc-base file...
> Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
> sections are invalid.

I have doc-base 0.10.7 but I can not reproduce this bug here.

$ sudo debi debian-reference_2.59_amd64.changes 
(Reading database ... 467563 files and directories currently installed.)
Preparing to unpack debian-reference-common_2.59_all.deb ...
Unpacking debian-reference-common (2.59) over (2.58) ...
Preparing to unpack debian-reference-de_2.59_all.deb ...
Unpacking debian-reference-de (2.59) over (2.58) ...
Preparing to unpack debian-reference-en_2.59_all.deb ...
Unpacking debian-reference-en (2.59) over (2.58) ...
Preparing to unpack debian-reference-fr_2.59_all.deb ...
Unpacking debian-reference-fr (2.59) over (2.58) ...
Preparing to unpack debian-reference-it_2.59_all.deb ...
Unpacking debian-reference-it (2.59) over (2.58) ...
Preparing to unpack debian-reference-ja_2.59_all.deb ...
Unpacking debian-reference-ja (2.59) over (2.58) ...
Preparing to unpack debian-reference-pt_2.59_all.deb ...
Unpacking debian-reference-pt (2.59) over (2.58) ...
Preparing to unpack debian-reference_2.59_all.deb ...
Unpacking debian-reference (2.59) over (2.58) ...
Setting up debian-reference-common (2.59) ...
Processing triggers for menu (2.1.47) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Setting up debian-reference-fr (2.59) ...
Setting up debian-reference-it (2.59) ...
Setting up debian-reference-ja (2.59) ...
Setting up debian-reference-pt (2.59) ...
Setting up debian-reference-de (2.59) ...
Setting up debian-reference-en (2.59) ...
Setting up debian-reference (2.59) ...
Processing triggers for mime-support (3.59) ...
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 6 changed doc-base files...
Registering documents with scrollkeeper...

I am not saying there is no problem around doc-base but the above is fact.

This file is accessed through path in which one directory is symlink.
So there may be some problem but it is not clear what is causing problem
at your end.

You should tell me what package uses this hook... maybe related to #780692

OK, let me install dwww ... No problem here.

I do not know what more should I do.

Osamu



Bug#818249: line 14: all `Format' sections are invalid.

2016-03-14 Thread 積丹尼 Dan Jacobson
Package: debian-reference-en
Version: 2.59

Processing triggers for doc-base (0.10.7) ...
Processing 1 changed doc-base file...
Error in `/usr/share/doc-base/debian-reference-en', line 14: all `Format' 
sections are invalid.