From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6761340396568051712 X-Received: by 2002:ac2:53ba:: with SMTP id j26mr6667428lfh.92.1574330494486; Thu, 21 Nov 2019 02:01:34 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:8ed1:: with SMTP id e17ls896765ljl.2.gmail; Thu, 21 Nov 2019 02:01:33 -0800 (PST) X-Google-Smtp-Source: APXvYqxlxQgp83oXVAzxurjfjBzFVkGCoHzywWvEtn15m/NTw1T8eV60MS9cOJDvT6XzmOCIFsc5 X-Received: by 2002:a2e:9e8f:: with SMTP id f15mr6564075ljk.9.1574330493531; Thu, 21 Nov 2019 02:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574330493; cv=none; d=google.com; s=arc-20160816; b=0f3sPbd2qY4CzbsS0a0NRN2a/A3WhElk8isFlLE7irRsdRxame3dRcrKW/LcB4VLbS ZxobV78PbLm20oHttVvkuVtcfdQGXGcmTHG4q11L0oaR9boAst/WeJbktdXtKW/7g2ae ixn0I9+NNdgeKR1mgOlOnitBYbxPC9dy86YO6L291uLGshzrFH0vN8W/UANF08m+IJSY CWUzZqoLp9GYhzrmkj7at00NVHTqIedZaHUjuyFnoNcb+LkzXPN1eJt26IjO3IGrQne4 5VeGC/+ycwvU28cuV3wi/spxyM6QuULpkrvZmPBbk32sVxPkr79HN0/oQFZj11blq8/d zEPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=82ncNpppe6b+i9F0tRNz+gO8kICsO7/GOXae3cWVAMw=; b=knDsJ3yMKvoYM/Gy/Y9+1HSr4nJ3vWQLEy1bRpL0L+M49aPikP/l8DQgm4mUJ2pOLF aXakR/9ejqRmT+SZJAbQzON9M+vXzJKE8Pv45RBSol/I7YfZ1RzpoNBAMxzMnYc2yLRq XfrHeRJwuoxXk7JUicdZ2EaOodLs7/2Y6sUYJYzJUtWEpe6bjIBahidYkW+tdxjAw9jl pcwAOd2UXmMgDJLXe3fJ/I2l0bEfG0pNNbuIX58fMAK3hqlxyxSnvC5gR/tBNkzo8Bsw OAZb5DU9sIRpsU1IThmNpKAW9zMsNNKnnPoRj1fLGXBQBwKH+ZgBMUVO/BIc7y0SDf+d 2L6w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id 68si88671lfi.3.2019.11.21.02.01.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2019 02:01:33 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id xALA1WSK010861 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Nov 2019 11:01:32 +0100 Received: from [139.22.38.223] ([139.22.38.223]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id xALA1VrS027559; Thu, 21 Nov 2019 11:01:32 +0100 Subject: Re: [PATCH] isar-bootstrap: Clear local apt state information To: vijaikumar.kanagarajan@gmail.com, isar-users@googlegroups.com Cc: henning.schild@siemens.com, ibr@radix50.net, Vijai Kumar K References: <20191120105340.26844-1-Vijaikumar_Kangarajan@mentor.com> From: Jan Kiszka Message-ID: Date: Thu, 21 Nov 2019 11:01:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191120105340.26844-1-Vijaikumar_Kangarajan@mentor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: rsqqiQ3z0J6s On 20.11.19 11:53, vijaikumar.kanagarajan@gmail.com wrote: > From: Vijai Kumar K > > Debootstrap's second stage switches to using the default debian mirror. > But the apt state information is renamed and used from the first stage. > This might cause apt-get update to fail with the below error when the > sources list contain both custom and upstream repos. > > | Reading package lists... > | E: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease \ > | Unable to find expected entry 'contrib/source/Sources' in Release file \ > | (Wrong sources.list entry or malformed file) > > Clear the apt state information before apt-get update. I had problems the other day with bootstrapping behind our proxy when there was both a local and the upstream repo involved: Reading package lists... E: Repository 'http://cdn-fastly.deb.debian.org/debian buster InRelease' changed its 'Origin' value from '' to 'Debian' E: Repository 'http://cdn-fastly.deb.debian.org/debian buster InRelease' changed its 'Label' value from '' to 'Debian' E: Repository 'http://cdn-fastly.deb.debian.org/debian buster InRelease' changed its 'Suite' value from '' to 'stable' Would that be resolved by your patch as well? Can reproduce ATM, that's why I'm asking. Jan > > Signed-off-by: Vijai Kumar K > --- > meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > index d614d9a..5a379f7 100644 > --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > @@ -320,6 +320,7 @@ isar_bootstrap() { > chroot "${ROOTFSDIR}" /usr/bin/dpkg --add-architecture ${DISTRO_ARCH} > fi > > + rm -rf "${ROOTFSDIR}/var/lib/apt/lists/"* > chroot "${ROOTFSDIR}" /usr/bin/apt-get update -y > chroot "${ROOTFSDIR}" /usr/bin/apt-get install -y -f > chroot "${ROOTFSDIR}" /usr/bin/apt-get dist-upgrade -y \ > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux