ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Nikolay A. Fetisov" <naf@naf.net.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] apt-get: bad object HEAD
Date: Fri, 22 May 2020 13:12:33 +0300
Message-ID: <9ef17b19d5cd349846fded8b4d9b87850b39b513.camel@naf.net.ru> (raw)
In-Reply-To: <CAA8E9_tu2v8wANgq9a6t1sN6WAQVqf8Jwm5Hw=A1kZ5p9RER8A@mail.gmail.com>

В Пт, 22/05/2020 в 09:40 +0300, Yuri Khachaturyan пишет:
> Он самый, но что с этим делать и как вылечить? 

Наверное, разбираться с репозиторием.
etckeeper сохраняет /etc/ в репозитории, вариант используемой
системы управления версиями задаётся в /etc/etckeeper/etckeeper.conf,
переменная VCS. Сам etckeeper дополнительно к системе контроля версий
сохраняет права и владельцев файлов - в файле /etc/.etckeeper .

Из систем хранения конфигураций скорее всего используется  Git.
Лечение репозитория Git можно выполнять стандартными методами,
т.е. пробовать git fsck; git gc.

Добавленный руками репозиторий должен показываться по git status ,
ну и это изменение можно самостоятельно запомнить стандартным
git add apt/; git commit . Ошибка, скорее всего, будет именно
при сохранении коммита.

Ну или как радикальный вариант с потерей накопленой истории -
удалить повреждённый репозиторий и создать новый:
cd /etc; rm -rf .git && etckeeper init && git commit -a

-- 
С уважением,
Николай Фетисов

  parent reply	other threads:[~2020-05-22 10:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-21 20:17 ` Michael Shigorin
2020-05-22  8:55     ` Michael Shigorin
2020-05-22 10:12     ` Nikolay A. Fetisov [this message]
2020-05-22 10:43         ` Nikolay A. Fetisov
2020-05-22 11:46             ` Nikolay A. Fetisov
2020-05-22 12:05                 ` Nikolay A. Fetisov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ef17b19d5cd349846fded8b4d9b87850b39b513.camel@naf.net.ru \
    --to=naf@naf.net.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git